HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure specifications
Chapter 11 601
The model for the interpretation of an integer value as a sequence of bits is described in “The
Bit Model” on page 508.
Specific forms
BNOT, HNOT, INOT, JNOT, KNOT.
OR(I, J)
Description
Bitwise logical OR.
Class
Elemental nonstandard 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 performing an OR on I and J bit-by-bit according to the
following truth table:
01
Table 11-11 Truth table for OR intrinsic
I J OR(I, J)
111
Table 11-10 Truth table for NOT intrinsic (Continued)
I NOT(I)