Rotates integer a right by n bits within a given width.
How to read it
- Only the lowest width bits participate in the rotation.
- Width is typically 1โ64.
- Result is masked back to the chosen width.
Examples
This rotates 1001โ right by one within 4 bits, giving 1100โ = 12.
Notes
- Operates on 64-bit integers.
- Rotation width must be chosen carefully; too small discards low bits.
See also:
BITROL ยท BITSHR