Next: , Previous: , Up: Intrinsic Procedures   [Contents][Index]


9.195 MVBITS — Move bits from one integer to another

Description:

Moves 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).

Standard:

Fortran 95 and later

Class:

Elemental subroutine

Syntax:

CALL MVBITS(FROM, FROMPOS, LEN, TO, TOPOS)

Arguments:
FROMThe type shall be INTEGER.
FROMPOSThe type shall be INTEGER.
LENThe type shall be INTEGER.
TOThe type shall be INTEGER, of the same kind as FROM.
TOPOSThe type shall be INTEGER.
See also:

IBCLR, IBSET, IBITS, IAND, IOR, IEOR