Clicky

Fortran Wiki
mvbits

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

  • 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.

See also

ibclr, ibset, ibits, iand, ior

category: intrinsics