2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
18 .. index:: bitwise logical and
20 .. index:: logical and, bitwise
22 IAND --- Bitwise logical and
23 ****************************
25 .. function:: IAND(I, J)
27 Bitwise logical ``AND``.
30 The type shall be ``INTEGER`` or a boz-literal-constant.
33 The type shall be ``INTEGER`` with the same
34 kind type parameter as :samp:`{I}` or a boz-literal-constant.
35 :samp:`{I}` and :samp:`{J}` shall not both be boz-literal-constants.
38 The return type is ``INTEGER`` with the kind type parameter of the
40 A boz-literal-constant is converted to an ``INTEGER`` with the kind
41 type parameter of the other argument as-if a call to :ref:`INT` occurred.
44 Fortran 90 and later, with boz-literal-constant Fortran 2008 and later, has overloads that are GNU extensions
50 .. code-block:: fortran
55 .. code-block:: fortran
59 DATA a / Z'F' /, b / Z'3' /
60 WRITE (*,*) IAND(a, b)
75 - Fortran 90 and later