ISHFTC — Shift bits circularly¶
- ISHFTC()¶
ISHFTCreturns a value corresponding toIwith the rightmostSIZEbits shifted circularlySHIFTplaces; that is, bits shifted out one end are shifted into the opposite end. A value ofSHIFTgreater 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 ofSHIFTmust be less thanSIZE. If theSIZEargument is omitted, it is taken to be equivalent toBIT_SIZE(I).- Parameters
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).
- Returns
The return value is of type
INTEGERand of the same kind asI.
Standard:Fortran 90 and later, has overloads that are GNU extensions
Class:Elemental function
Syntax:RESULT = ISHFTC(I, SHIFT [, SIZE])
Specific names:Name
Argument
Return type
Standard
ISHFTC(A)INTEGER AINTEGERFortran 90 and later
BSHFTC(A)INTEGER(1) AINTEGER(1)GNU extension
IISHFTC(A)INTEGER(2) AINTEGER(2)GNU extension
JISHFTC(A)INTEGER(4) AINTEGER(4)GNU extension
KISHFTC(A)INTEGER(8) AINTEGER(8)GNU extension
See also:ISHFT