added more hpv funcs and made primshell
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
-- bit32.lua
|
||||
-- Full pure-Lua implementation of Lua 5.2 bit32 library
|
||||
-- NO Lua 5.3 operators used
|
||||
--:Minify:--
|
||||
|
||||
local bit32 = {}
|
||||
|
||||
@@ -136,16 +134,4 @@ function bit32.replace(x, v, field, width)
|
||||
return bit32.bor(x, bit32.lshift(v, field))
|
||||
end
|
||||
|
||||
-- ===== Test =====
|
||||
|
||||
function bit32.test(x, ...)
|
||||
local args = {...}
|
||||
for i = 1, #args do
|
||||
if bit32.band(x, args[i]) ~= 0 then
|
||||
return true
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
return bit32
|
||||
|
||||
Reference in New Issue
Block a user