None of these functions are part of the FORTRAN 77 Standard.
Table 6-6 Bitwise Functions|
Bitwise Operations |
No. of Args. |
Specific Name |
Argument Type |
Function Type |
|---|---|---|---|---|
|
Complement |
1 | NOT | INTEGER | INTEGER |
|
And |
2 2 | AND IAND | INTEGER INTEGER | INTEGER INTEGER |
|
Inclusive or |
2 2 | OR IOR | INTEGER INTEGER | INTEGER INTEGER |
|
Exclusive or |
2 2 | XOR IEOR | INTEGER INTEGER | INTEGER INTEGER |
|
Shift See Note (14). |
2 | ISHFT | INTEGER | INTEGER |
|
Left shift See Note (14). |
2 | LSHIFT | INTEGER | INTEGER |
|
Right shift See Note (14). |
2 | RSHIFT | INTEGER | INTEGER |
|
Logical right shift See Note (14). |
2 | LRSHFT | INTEGER | INTEGER |
|
Circular shift |
3 | ISHFTC | INTEGER | INTEGER |
|
Bit extraction |
3 | IBITS | INTEGER | INTEGER |
|
Bit set |
2 | IBSET | INTEGER | INTEGER |
|
Bit test |
2 | BTEST | INTEGER | LOGICAL |
|
Bit clear |
2 | IBCLR | INTEGER | INTEGER |
The above functions are available as intrinsic or extrinsic functions. See also the discussion of the library bit manipulation routines in the Fortran Library Reference manual.