ieor(3I)

IEOR, IIEOR, JIEOR, KIEOR - Performs an exclusive OR

As shipped in IRIX 6.5.15. Last changed in IRIX 6.5.5.

NAME
     IEOR, IIEOR, JIEOR, KIEOR - Performs an exclusive OR

SYNOPSIS
     IEOR ([I=]i, [J=]j)
     IIEOR ([I=]i, [J=]j)
     JIEOR ([I=]i, [J=]j)
     KIEOR ([I=]i, [J=]j)

IMPLEMENTATION
     UNICOS, UNICOS/mk, IRIX systems

     CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77

STANDARDS
     Fortran

     Fortran extensions:  IIEOR, JIEOR, KIEOR

DESCRIPTION
     The IEOR, IIEOR, JIEOR, and KIEOR intrinsic functions perform an
     exclusive OR.  They accept the following arguments:

     i         Must be of type integer.  For IIEOR, must be of type integer
               (KIND=2).  For JIEOR, must be of type integer (KIND=4).  For
               KIEOR, 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 function.  The names of these intrinsics
     cannot be passed as arguments.

RETURN VALUES
     The result type and type parameter are the same as i.  On IRIX
     systems, the result can be affected by the -i option on the f90(1)
     command line.

     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 ALSO
     MODELS(3I)

     Intrinsic Procedures Reference Manual for the printed version of this
     man page.