ISHFTC — Shift bits circularly#
-
ISHFTC()#
ISHFTC
returns a value corresponding toI
with the rightmostSIZE
bits shifted circularlySHIFT
places; that is, bits shifted out one end are shifted into the opposite end. A value ofSHIFT
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 ofSHIFT
must be less thanSIZE
. If theSIZE
argument 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
INTEGER
and 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 A
INTEGER
Fortran 90 and later
BSHFTC(A)
INTEGER(1) A
INTEGER(1)
GNU extension
IISHFTC(A)
INTEGER(2) A
INTEGER(2)
GNU extension
JISHFTC(A)
INTEGER(4) A
INTEGER(4)
GNU extension
KISHFTC(A)
INTEGER(8) A
INTEGER(8)
GNU extension
- See also: