Next: NEAREST, Previous: MOVE_ALLOC, Up: Intrinsic Procedures [Contents][Index]
MVBITS
— Move bits from one integer to anotherMoves LEN bits from positions FROMPOS through
FROMPOS+LEN-1
of FROM to positions TOPOS through
TOPOS+LEN-1
of TO. The portion of argument TO not
affected by the movement of bits is unchanged. The values of
FROMPOS+LEN-1
and TOPOS+LEN-1
must be less than
BIT_SIZE(FROM)
.
Fortran 95 and later, has overloads that are GNU extensions
Elemental subroutine
CALL MVBITS(FROM, FROMPOS, LEN, TO, TOPOS)
FROM | The type shall be INTEGER . |
FROMPOS | The type shall be INTEGER . |
LEN | The type shall be INTEGER . |
TO | The type shall be INTEGER , of the
same kind as FROM. |
TOPOS | The type shall be INTEGER . |
Name | Argument | Return type | Standard |
MVBITS(A) | INTEGER A | INTEGER | Fortran 95 and later |
BMVBITS(A) | INTEGER(1) A | INTEGER(1) | GNU extension |
IMVBITS(A) | INTEGER(2) A | INTEGER(2) | GNU extension |
JMVBITS(A) | INTEGER(4) A | INTEGER(4) | GNU extension |
KMVBITS(A) | INTEGER(8) A | INTEGER(8) | GNU extension |