ibchng(3I)

IBCHNG, IIBCHNG, JIBCHNG, KIBCHNG - Reverses the value of a specified bit in an integer

As shipped in IRIX 6.5.7. Added in IRIX 6.5.5.

NAME
     IBCHNG, IIBCHNG, JIBCHNG, KIBCHNG - Reverses the value of a specified
     bit in an integer

SYNOPSIS
     IBCHNG ([I=]i, [POS=]pos)
     IIBCHNG ([I=]i, [POS=]pos)
     JIBCHNG ([I=]i, [POS=]pos)
     KIBCHNG ([I=]i, [POS=]pos)

IMPLEMENTATION
     UNICOS, UNICOS/mk, IRIX systems

     CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77

STANDARDS
     Fortran extensions

DESCRIPTION
     The IBCHNG, IIBCHNG, JIBCHNG, and KIBCHNG intrinsic functions reverse
     the value of a specified bit in an integer.  They accept the following
     arguments:

     i         Must of of type integer.  Contains the bit to be reversed.
               For IIBCHNG, must be of type integer (KIND=2).  For JIBCHNG,
               must be of type integer (KIND=4).  For KIBCHNG, must be of
               type integer (KIND=8).

     pos       Must be of type integer.  Specifies the position of the bit
               to be reversed.  The rightmost (least significant) bit of i
               is in position 0.

     These are elemental intrinsic functions.  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 is
     equal to i, with the bit in position pos reversed.

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