2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
20 MVBITS --- Move bits from one integer to another
21 ************************************************
23 .. function:: MVBITS(FROM, FROMPOS, LEN, TO, TOPOS)
25 Moves :samp:`{LEN}` bits from positions :samp:`{FROMPOS}` through
26 ``FROMPOS+LEN-1`` of :samp:`{FROM}` to positions :samp:`{TOPOS}` through
27 ``TOPOS+LEN-1`` of :samp:`{TO}`. The portion of argument :samp:`{TO}` not
28 affected by the movement of bits is unchanged. The values of
29 ``FROMPOS+LEN-1`` and ``TOPOS+LEN-1`` must be less than
33 The type shall be ``INTEGER``.
36 The type shall be ``INTEGER``.
39 The type shall be ``INTEGER``.
42 The type shall be ``INTEGER``, of the
43 same kind as :samp:`{FROM}`.
46 The type shall be ``INTEGER``.
49 Fortran 90 and later, has overloads that are GNU extensions
55 .. code-block:: fortran
57 CALL MVBITS(FROM, FROMPOS, LEN, TO, TOPOS)
71 - Fortran 90 and later