A newer version of this document is available. Customers should click here to go to the newest version.
Visible to Intel only — GUID: GUID-BA669FF3-4480-4FE5-80B2-73FDFF423F3E
Visible to Intel only — GUID: GUID-BA669FF3-4480-4FE5-80B2-73FDFF423F3E
BIT
Portability Function: Performs a bit-level test for integers.
Module
USE IFPORT
result = BIT (bitnum, source)
bitnum |
(Input) INTEGER(4). Bit number to test. Must be in the range 0 (least significant bit) to 31 (most significant bit). |
source |
(Input) INTEGER(4) or INTEGER(8). Variable being tested. |
Results
The result type is logical. It is .TRUE. if bit bitnum of source is 1; otherwise, .FALSE..