Skip to content

bitrshift

Right bit-shift.

v = bitrshift(a, b)

Returns a shifted right by b bit positions. Equivalent to floor(a / 2^b) for non-negative a.

bitrshift(16, 2) % 4
  • bitlshift — Left bit-shift.
  • bitshift — Shift the bits of an integer left or right.