XL Fortran for AIX 8.1

Language Reference

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


LSHIFT(I, SHIFT)

Performs a logical shift to the left.

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).

Class

Elemental function

Result Type and Attributes

Same as I.

Result Value

Examples

LSHIFT (3, 1) has the result 6.

LSHIFT (3, 2) has the result 12.


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

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


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]