bit_(X1, X2)

Purpose

The bit_ function returns the value .TRUE. if bit X1 of X2 equals 1. Otherwise, bit_ returns the value .FALSE.. For greater portability, it is recommended that you use the BTEST standard intrinsic procedure instead of this procedure.

Class

Function

Argument type and attributes

X1
INTEGER(4), INTENT(IN)

The range of X1 must be within 0 to 31, inclusive.

X2
INTEGER(4), INTENT(IN)

Result type and attributes

LOGICAL(4)

Result value

This function returns .TRUE. if bit X1 of X2 equals 1. Otherwise this function returns .FALSE.