IEOR(3I) Last changed: 1-6-98
NAMEIEOR - Performs an exclusive OR
SYNOPSISIEOR ([I=]i, [J=]j)
IMPLEMENTATION
UNICOS, UNICOS/mk, and IRIX systems
STANDARDS
Fortran 90
DESCRIPTION
The IEOR intrinsic function performs an exclusive OR. It accepts the
following arguments:
i Must be of type integer
j Must be of type integer with the same kind type parameter as i
IEOR is an elemental function. The name of this intrinsic cannot be
passed as an argument.
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:
-----------------
IEOR (i,
i j j)
-----------------
1 1 0
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
IEOR(1, 3) has the value 2.
SEE ALSOMODELS(3I)
Intrinsic Procedures Reference Manual, publication SR-2138, for the
printed version of this man page.