Expand description
bit32 — the Lua 5.2/5.3 32-bit bitwise library.
This library was present (default-on) in Lua 5.3 and removed in Lua 5.4
(specs/research/5.3-upstream-delta.md delta #11). Its operations mask
every operand and result to 32 bits, which is distinct from 5.3’s
native 64-bit &/|/~/<</>> operators (5.3-upstream-delta.md
risk #5). We register it only under the 5.3 backend.
PRELIMINARY: this is a minimal, exploratory subset proving the per-version
stdlib-roster seam — it implements the most common operations. The full
5.2/5.3 surface (btest, extract, replace, lrotate, rrotate,
arshift) is left as a clear TODO below.
Functions§
- open_
bit32 - Open the
bit32library, leaving the populated table on the stack.