Returns the number x shifted displacement bits to the right. The number displacement may be any representable integer.
Negative displacements shift to the left. This shift operation is what is called arithmetic shift.
Vacant bits on the left are filled with copies of the higher bit of x; vacant bits on the right are filled
with zeros. In particular, displacements with absolute values higher than 31 result in zero or 0xFFFFFFFF
(all original bits are shifted out).
Returns the number
x
shifteddisplacement
bits to the right. The numberdisplacement
may be any representable integer. Negative displacements shift to the left. This shift operation is what is called arithmetic shift. Vacant bits on the left are filled with copies of the higher bit ofx
; vacant bits on the right are filled with zeros. In particular, displacements with absolute values higher than 31 result in zero or0xFFFFFFFF
(all original bits are shifted out).