Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

SHIFTL

Elemental Intrinsic Function (Specific): Logically shifts an integer left by a specified number of bits. This function cannot be passed as an actual argument.

result = SHIFTL (i,shift)

i

(Input) Must be of type integer. This is the value to be shifted.

shift

(Input) Must be of type integer. The value must be nonnegative and <= BIT_SIZE(i). This value is the number of positions to shift.

Results

The result type and kind are the same as i. The result is the value of i shifted left by shift bit positions. Bits shifted off the left end are lost; zeros are shifted in from the opposite end.

SHIFTL (i, j) is the same as ISHFT (i, j).

See Also