Rotates integer a left 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โ left by one within 4 bits, giving 0011โ = 3.
Notes
- Operates on 64-bit integers.
- Rotation width must be chosen carefully; too small discards high bits.
See also:
BITROR ยท BITSHL