ISHFT intrinsic function
Standard: F77 F90 F95 F2003 F2008
  Example Program

I : Integer;
SHIFT : Integer, conformable with I, ABS(SHIFT)≤BIT_SIZE(I);

Result : Same type and kind as I.

The value of the result is obtained by shifting I to the left SHIFT times; if SHIFT is negative, the shift is to the right. Bits shifted in are zero. This is an elemental function; if any argument is an array the result is an array of the same shape, with the ISHFT operation being applied elementwise.

Note that this Fortran 90 intrinsic function function combines the functionality of the Fortran 2008 functions SHIFTL and SHIFTR.

IAND intrinsic function, IBITS intrinsic function, IEOR intrinsic function, IOR intrinsic function, ISHFTC intrinsic function, NOT intrinsic function, SHIFTA intrinsic function, SHIFTL intrinsic function, SHIFTR intrinsic function