library for bitwise operations in lua
luabitlib is a C library for Lua 5.1 that provides bitwise operations.

Functions provided:

bit.bnot(a)       returns the one's complement of a
bit.band(w1,...)  returns the bitwise and of the w's
bit.bor(w1,...)   returns the bitwise or of the w's
bit.bxor(w1,...)  returns the bitwise exclusive or of the w's
bit.lshift(a,b)   returns a shifted left b places
bit.rshift(a,b)   returns a shifted logically right b places
bit.arshift(a,b)  returns a shifted arithmetically right b places
bit.mod(a,b)      returns the integer remainder of a divided by b

Maintainer: Pedro Martelletto <pedro@openbsd.org>

WWW: http://bitlib.luaforge.net/
