[UP]


Manual Reference Pages  - ibits (3)

NAME

ibits(3f) - [FORTRAN:INTRINSIC:BIT MANIPULATION] Bit extraction

SYNTAX

result = ibits(i, pos, len)

DESCRIPTION

IBITS extracts a field of length LEN from I, starting from bit position POS and extending left for LEN bits. The result is right-justified and the remaining bits are zeroed. The value of pos+len must be less than or equal to the value bit_size(i).

ARGUMENTS

I The type shall be INTEGER.
POS The type shall be INTEGER. A value of zero refers to the least significant bit.
LEN The type shall be INTEGER.

RETURN VALUE

The return value is of type INTEGER and of the same kind as I.

STANDARD

[[Fortran 95]] and later

CLASS

[[Elemental procedure|Elemental function]]

SEE ALSO

bit_size(3), ibclr(3), ibset(3), iand(3), ior(3), ieor(3)


ibits (3) March 11, 2021
Generated by manServer 1.08 from 60541d79-8536-4024-8aaa-6afd6bdf9c77 using man macros.