Elemental Intrinsic Function (Specific): Logically shifts an integer right by a specified number of bits. This function cannot be passed as an actual argument.
result = SHIFTR (ivalue,ishift)
ivalue |
(Input) Must be of type integer. This is the value to be shifted. |
ishift |
(Input) Must be of type integer. The value must be positive. This value is the number of positions to shift. |
The result type is the same as ivalue. The result is the value of ivalue shifted right by ishift bit positions. Bits shifted off the right end are lost; zeros are shifted in from the opposite end.
SHIFTR (i, j) is the same as ISHFT (i, -j).