Skip to content

bitlshift

Left bit-shift.

v = bitlshift(a, b)

Returns a shifted left by b bit positions. Equivalent to a * 2^b (with overflow truncation if applicable).

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