Exherbo
GitLab
Packages
dev-lua/LuaBitOp
C extension module for Lua 5.1 which adds bitwise operations on numbers.
Versions
Slot
Version
Repository
Platforms
0
1.0.2-r1
alip
~amd64
arm?
armv7?
armv8?
x86?
Metadata
Homepage
http://bitop.luajit.org/
Summary
C extension module for Lua 5.1 which adds bitwise operations on numbers.
Description
Features: # Supported functions: bit.tobit, bit.tohex, bit.bnot, bit.band, bit.bor, bit.bxor, bit.lshift, bit.rshift, bit.arshift, bit.rol, bit.ror, bit.bswap # Consistent semantics across 16, 32 and 64 bit platforms. # Supports different lua_Number types: either IEEE 754 doubles, int32_t or int64_t. # Internal self-test on startup to detect miscompiles. Includes a comprehensive test and benchmark suite. # Compatible with the bitwise operations in the upcoming LuaJIT 2.x. # It's as fast as you can get with the standard Lua/C API.
Dependencies
(
build+run:
lua_abis:5.1? (
dev-lang/lua:5.1
)
lua_abis:5.2? (
dev-lang/lua:5.2
)
)
Downloads
http://bitop.luajit.org/download/LuaBitOp-1.0.2.tar.gz
Licences
MIT
Choices
lua_abis
5.1
Use Lua ABI 5.1
5.2
Use Lua ABI 5.2