iand(3I)

IAND, IIAND, JIAND, KIAND - Performs a logical AND

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

NAME
     IAND, IIAND, JIAND, KIAND - Performs a logical AND

SYNOPSIS
     IAND ([I=]i, [J=]j)
     IIAND ([I=]i, [J=]j)
     JIAND ([I=]i, [J=]j)
     KIAND ([I=]i, [J=]j)

IMPLEMENTATION
     UNICOS, UNICOS/mk, IRIX systems

     CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77

STANDARDS
     Fortran

     Fortran extensions:  IIAND, JIAND, KIAND

DESCRIPTION
     The IAND, IIAND, JIAND, and KIAND intrinsic functions perform a
     logical AND.  They accept the following arguments:

     i         For IAND, must be of type integer.  For IIAND, must be of
               type integer (KIND=2).  For JIAND, must be of type integer
               (KIND=4).  For KIAND, must be of type integer (KIND=8).

     j         Must be of type integer with the same kind type parameter as
               i

     These are elemental functions.  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:

          -----------------
                  IAND (i,
          i   j      j)
          -----------------
          1   1       1
          1   0       0
          0   1       0
          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
     IAND(1, 3) has the value 1.

SEE ALSO
     f90(1)

     MODELS(3I)

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