[UP]


Manual Reference Pages  - ibits (3)

NAME

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

CONTENTS

Syntax
Description
Arguments
Return Value
Standard
Class
See Also

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.
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]], [[ibclr]], [[ibset]], [[iand]], [[ior]], [[ieor]]


ibits (3) March 18, 2019
Generated by manServer 1.08 from 37e29703-d988-49d8-a005-b87475774f32 using man macros.