mvbits(3f) - [FORTRAN:INTRINSIC:BIT MANIPULATION] Move bits from one integer to another
Syntax
Description
Arguments
Standard
Class
See Also
call mvbits(from, frompos, len, to, topos)
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).
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.
[[Fortran 95]] and later
[[Elemental subroutine]]
[[ibclr]], [[ibset]], [[ibits]], [[iand]], [[ior]]
mvbits (3) | March 18, 2019 |