+-------------------------------IBM Extension--------------------------------+

RSHIFT(I, SHIFT)

Purpose

Performs a logical shift to the right.

Class

Elemental function

Argument Type and Attributes

I
must be of type integer.

SHIFT
must be of type integer. It must be non-negative and less than or equal to BIT_SIZE(I).

Result Type and Attributes

Same as I.

Result Value

Examples

RSHIFT (3, 1) has the result 1.

RSHIFT (3, 2) has the result 0.


Specific Name Argument Type Result Type Pass As Arg?
RSHIFT any integer same as argument yes

+----------------------------End of IBM Extension----------------------------+

IBM Copyright 2003