9.150 ISHFTC — Shift bits circularly
- Description:
-
ISHFTCreturns a value corresponding to I with the rightmost SIZE bits shifted circularly SHIFT places; that is, bits shifted out one end are shifted into the opposite end. A value of SHIFT greater than zero corresponds to a left shift, a value of zero corresponds to no shift, and a value less than zero corresponds to a right shift. The absolute value of SHIFT must be less than SIZE. If the SIZE argument is omitted, it is taken to be equivalent toBIT_SIZE(I). - Standard:
- Fortran 95 and later
- Class:
- Elemental function
- Syntax:
-
RESULT = ISHFTC(I, SHIFT [, SIZE]) - Arguments:
-
I The type shall be INTEGER.SHIFT The type shall be INTEGER.SIZE (Optional) The type shall be INTEGER; the value must be greater than zero and less than or equal toBIT_SIZE(I). - Return value:
- The return value is of type
INTEGERand of the same kind as I. - See also:
- ISHFT
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-5.4.0/gfortran/ISHFTC.html