The routines in this section provide for bit packed logical arrays. The routines are compiled in-line using the Intel bit manipulation instructions. The result executes about as fast as a reference to a logical array, but the data is stored 8 or 16 or 32 times more efficiently. The bit array may be held in an array (or even a simple variable) of any type (usually INTEGER (KIND= 2)). These routines do not check that their arguments are in range, even in CHECK mode. Bits are numbered from 0. Bit 0 is the least significant bit of the first word of the array.
Clears the N'th bit of an array. |
|
Sets the N'th bit of an array. |
|
Sets the N'th bit of an array. |
See also: Standard Fortran 95 bitwise operations