DSHIFTL — Combined left shift¶
- DSHIFTL(I, J, SHIFT)¶
DSHIFTL(I, J, SHIFT)combines bits ofIandJ. The rightmostSHIFTbits of the result are the leftmostSHIFTbits ofJ, and the remaining bits are the rightmost bits ofI.- Parameters
I – Shall be of type
INTEGERor a BOZ constant.J – Shall be of type
INTEGERor a BOZ constant. If bothIandJhave integer type, then they shall have the same kind type parameter.IandJshall not both be BOZ constants.SHIFT – Shall be of type
INTEGER. It shall be nonnegative. IfIis not a BOZ constant, thenSHIFTshall be less than or equal toBIT_SIZE(I); otherwise,SHIFTshall be less than or equal toBIT_SIZE(J).
- Returns
If either
IorJis a BOZ constant, it is first converted as if by the intrinsic functionINTto an integer type with the kind type parameter of the other.
Standard:Fortran 2008 and later
Class:Elemental function
Syntax:RESULT = DSHIFTL(I, J, SHIFT)
See also:DSHIFTR