nttl050611's picture
Upload 2089 files
d7c5875 verified
Raw
History Blame Contribute Delete
217 Bytes
local has_bit32,bit = pcall(require,'bit32')
if has_bit32 then
-- lua 5.2 / bit32 library
bit.rol = bit.lrotate
bit.ror = bit.rrotate
return bit
else
-- luajit / lua 5.1 + luabitop
return require'bit'
end