Performs a circular shift of the rightmost bits; that is, bits shifted off one end are inserted again at the other end.
Class
Elemental function
Result Type and Attributes
Same as I.
Result Value
The result has the value obtained by shifting the SIZE rightmost bits of I circularly by SHIFT positions. If SHIFT is positive, the shift is to the left; if SHIFT is negative, the shift is to the right; and, if SHIFT is zero, no shift is performed. No bits are lost. The unshifted bits are unaltered.
The bits are numbered 0 to BIT_SIZE(I)-1, from right to left.
Examples
ISHFTC (3, 2, 3) has the value 5. See Integer Bit Model.
+-------------------------------IBM Extension--------------------------------+
Specific Name | Argument Type | Result Type | Pass As Arg? |
---|---|---|---|
ISHFTC | any integer | same as argument | yes (1) |
Notes:
+----------------------------End of IBM Extension----------------------------+