HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11 569
IOR(I, J)
Description
Performs a bitwise inclusive OR.
Class
Elemental function.
Arguments
I must be of type integer.
J must be of type integer with the same kind type parameter as I.
Result type/
type parameters
Same as I.
Result value
The result has the value obtained by combining I and J bit-by-bit according to Table 11-8.
The model for the interpretation of an integer value as a sequence of bits is in “The Bit Model”
on page 508.
Specific forms
BIOR, HIOR, IIOR, JIOR, KIOR
Table 11-8 Truth table for IOR intrinsic
I J IOR(I, J)
111
101
011
000