Repository navigation
Normalized Lua Functions
I am happy to announce release 5.1 of std.normalize.
std.normalize's home page is at https://lua-stdlib.github.io/normalize
Noteworthy changes in release 5.1 (2026-10-29) [stable]
New features
- New
bit32library, with every function of thebit32of Lua 5.2
(arshift,band,bnot,bor,btest,bxor,extract,
lrotate,lshift,replace,rrotateandrshift), for every
host, so that{'bit32.band'}imports it for a library that needs
bitwise operations, without a rock or a different file for each Lua.
All of its functions work on unsigned 32-bit integers, and wrap what
is out of range modulo 2^32. In a Lua that hasbit32it is that,
and otherwise it is made of the operators of Lua 5.3 and later, the
bitlibrary of LuaJIT, or else plain arithmetic, whichever is first
to give the same results. When typecheck is installed, each of them
checks its arguments, as the other functions do.
Install it with LuaRocks, using:
luarocks install std.normalize 5.1