Platform | x64, Win32 |
Purpose |
To test if the N'th bit of an array is set. |
Syntax |
INTEGER FUNCTION TEST_BIT@(IA,N)
|
Description |
TEST_BIT@ may be declared as LOGICAL or INTEGER. IA and N can be any INTEGER type. |
Return value |
TEST_BIT@ returns 1 or 0 (.TRUE. or .FALSE.) according to whether the N'th bit of IA is set or not. |
Notes |
TEST_BIT@ is not like the standard intrinsic BTEST. TEST_BIT@ is not elemental and N extends from the lowest bit of IA(1) to highest bit of the last element of IA. |