SHIFTL(I, SHIFT) (Fortran 2008)

Purpose

Performs a shift to the left. It is identical to LSHIFT(I, SHIFT) (IBM extension).

Class

Elemental function

Argument type and attributes

I
An INTENT(IN) INTEGER
SHIFT
An INTENT(IN) INTEGER. Its value must be non-negative, and less than or equal to BIT_SIZE(I).

Result type and attributes

Same as I.

Result value

Example

SHIFTL (-8, 2) has the result -32.