GNU Info

Info Node: (g77-295.info)LShift Intrinsic

(g77-295.info)LShift Intrinsic


Next: LStat Intrinsic (subroutine) Prev: Long Intrinsic Up: Table of Intrinsic Functions
Enter node , (file) or (file)node

LShift Intrinsic
................

     LShift(I, SHIFT)

LShift: `INTEGER' function, the `KIND=' value of the type being that of
argument I.

I: `INTEGER'; scalar; INTENT(IN).

SHIFT: `INTEGER'; scalar; INTENT(IN).

Intrinsic groups: `f2c'.

Description:

   Returns I shifted to the left SHIFT bits.

   Although similar to the expression `I*(2**SHIFT)', there are
important differences.  For example, the sign of the result is not
necessarily the same as the sign of I.

   Currently this intrinsic is defined assuming the underlying
representation of I is as a two's-complement integer.  It is unclear at
this point whether that definition will apply when a different
representation is involved.

   Note: LShift Intrinsic, for the inverse of this function.

   Note: IShft Intrinsic, for information on a more widely available
left-shifting intrinsic that is also more precisely defined.


automatically generated by info2www version 1.2.2.9