ior(3I)
IOR, IIOR, JIOR, KIOR - Performs an inclusive OR
As shipped in IRIX 6.5.30. Last changed in IRIX 6.5.19.
NAME IOR, IIOR, JIOR, KIOR - Performs an inclusive OR SYNOPSIS CF90 and MIPSpro 7 Fortran 90: IOR ([I=]i, [J=]j) IIOR ([I=]i, [J=]j) JIOR ([I=]i, [J=]j) KIOR ([I=]i, [J=]j) STANDARDS Fortran 95 IIOR, JIOR, and KIOR are extensions to the FORTRAN 77 and Fortran 95 standards. DESCRIPTION The IOR, IIOR, JIOR, and KIOR intrinsic functions perform an inclusive OR. They accept the following arguments: i Must be of type integer. For IIOR, must be of type integer (KIND=2). For JIOR, must be of type integer (KIND=4). For KIOR, must be of type integer (KIND=8). j Must be of type integer with the same kind type parameter as i These are elemental intrinsic functions for the MIPSpro Fortran 90 compiler. The names of these intrinsics cannot be passed as arguments. RETURN VALUES The result type and type parameter are the same as i. The result has the value obtained by combining i and j bit-by-bit according to the following truth table: ---------------- i j IOR (i, j) ---------------- 1 1 1 1 0 1 0 1 1 0 0 0 ---------------- The bit model defines the interpretation of an integer value as a sequence of bits. For more information on the bit model, see the MODELS(3I) man page. EXAMPLES IOR (1, 3) has the value 3. SEE ALSO MODELS(3I)