Lahey/Fujitsu Fortran

Bit Manipulation Procedures

The generic procedure name is shown in bold text. Other procedure names appearing in the same cell as the generic name are specific versions of the generic procedure. Procedures highlighted in blue are supported nonstandard versions of the generic procedure.

Bit Manipulation Procedures

Name

Function Type

Argument Type

Description

Class

BTEST

BITEST

BJTEST

LOGICAL_4

LOGICAL_4

LOGICAL_4

INTEGER

INTEGER_2

INTEGER_4

Bit testing.

Elemental

IAND

IIAND

JIAND

INTEGER

INTEGER_2

INTEGER_4

INTEGER

INTEGER_2

INTEGER_4

Bit-wise logical AND.

Elemental

IBCLR

IIBCLR

JIBCLR

INTEGER

INTEGER_2

INTEGER_4

INTEGER

INTEGER_2

INTEGER_4

Clear one bit to zero.

Elemental

IBITS

IIBITS

JIBITS

INTEGER

INTEGER_2

INTEGER_4

INTEGER

INTEGER_2

INTEGER_4

Extract a sequence of bits.

Elemental

IBSET

IIBSET

JIBSET

INTEGER

INTEGER_2

INTEGER_4

INTEGER

INTEGER_2

INTEGER_4

Set a bit to one.

Elemental

IEOR

IIEOR

JIEOR

INTEGER

INTEGER_2

INTEGER_4

INTEGER

INTEGER_2

INTEGER_4

Bit-wise logical exclusive OR.

Elemental

IOR

IIOR

JIOR

INTEGER

INTEGER_2

INTEGER_4

INTEGER

INTEGER_2

INTEGER_4

Bit-wise logical inclusive OR.

Elemental

ISHFT

IISHFT

JISHFT

INTEGER

INTEGER_2

INTEGER_4

INTEGER

INTEGER_2

INTEGER_4

Bit-wise shift.

Elemental

ISHFTC

IISHFTC

JISHFTC

INTEGER

INTEGER_2

INTEGER_4

INTEGER

INTEGER_2

INTEGER_4

Bit-wise circular shift of rightmost bits.

Elemental

MVBITS

 

INTEGER

Copy a sequence of bits from one INTEGER data object to another.

Subroutine

NOT

INOT

JNOT

INTEGER

INTEGER_2

INTEGER_4

INTEGER

INTEGER_2

INTEGER_4

Bit-wise logical complement.

Elemental