DSHIFTR — Combined right shift#
- 
DSHIFTR(I, J, SHIFT)#
- DSHIFTR(I, J, SHIFT)combines bits of- Iand- J. The leftmost- SHIFTbits of the result are the rightmost- SHIFTbits of- I, and the remaining bits are the leftmost bits of- J.- Parameters:
- I – Shall be of type - INTEGERor a BOZ constant.
- J – Shall be of type - INTEGERor a BOZ constant. If both- Iand- Jhave integer type, then they shall have the same kind type parameter.- Iand- Jshall not both be BOZ constants.
- SHIFT – Shall be of type - INTEGER. It shall be nonnegative. If- Iis not a BOZ constant, then- SHIFTshall be less than or equal to- BIT_SIZE(I); otherwise,- SHIFTshall be less than or equal to- BIT_SIZE(J).
 
- Returns:
- If either - Ior- Jis a BOZ constant, it is first converted as if by the intrinsic function- INTto an integer type with the kind type parameter of the other.
 - Standard:
- Fortran 2008 and later 
- Class:
- Elemental function 
- Syntax:
- RESULT = DSHIFTR(I, J, SHIFT) 
- See also: