slackbuilds/libraries/LuaBitOp
Heinz Wiesinger 63daf9f79a All: Support $PRINT_PACKAGE_NAME env var
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
2021-07-17 21:55:09 +02:00
..
LuaBitOp.SlackBuild All: Support $PRINT_PACKAGE_NAME env var 2021-07-17 21:55:09 +02:00
LuaBitOp.info libraries/LuaBitOp: Added (bitwise operations on numbers for Lua). 2017-10-06 00:14:30 +01:00
Makefile.patch libraries/LuaBitOp: Added (bitwise operations on numbers for Lua). 2017-10-06 00:14:30 +01:00
README libraries/LuaBitOp: Added (bitwise operations on numbers for Lua). 2017-10-06 00:14:30 +01:00
slack-desc libraries/LuaBitOp: Added (bitwise operations on numbers for Lua). 2017-10-06 00:14:30 +01:00

README

Lua BitOp is a C extension module for Lua 5.1/5.2 which adds bitwise
operations on numbers.

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.
* Runs on Linux, *BSD, Mac OS X, Windows and probably anything else you
  can find.
* Simple installation on all systems. No bulky configure scripts.
  Embedded-systems-friendly.
* Internal self-test on startup to detect miscompiles. Includes a
  comprehensive test and benchmark suite.
* Compatible with the built-in bitwise operations in LuaJIT 2.0.
* It's as fast as you can get with the standard Lua/C API.