ISHFT(I, SHIFT)

Purpose

Performs a logical shift.

Class

Elemental function

Argument type and attributes

I
An INTENT(IN) INTEGER
SHIFT
An INTENT(IN) INTEGER. The absolute value of SHIFT must be less than or equal to BIT_SIZE (I).

Result type and attributes

Same as I.

Result value

Examples

ISHFT (3, 1) has the result 6. See Integer bit model.

Specific Name Argument Type Result Type Pass As Arg?
ISHFT  1  any integer same as argument yes
Note:
  •  1  IBM extension