Adjust LuaJIT runtime

This commit is contained in:
Rerumu 2021-11-18 12:51:39 -05:00
parent f449fffe55
commit 3b02ec21c5

View File

@ -85,18 +85,6 @@ do
module.shl = shl module.shl = shl
module.shr = shr module.shr = shr
function shl.u32(lhs, rhs)
local v = bit.lshift(u32(lhs), rhs)
return tonumber(i32(v))
end
function shl.u64(lhs, rhs)
local v = bit.lshift(u64(lhs), rhs)
return i64(v)
end
function shr.u32(lhs, rhs) function shr.u32(lhs, rhs)
local v = bit.rshift(u32(lhs), rhs) local v = bit.rshift(u32(lhs), rhs)
@ -111,6 +99,8 @@ do
shl.i32 = bit.lshift shl.i32 = bit.lshift
shl.i64 = bit.lshift shl.i64 = bit.lshift
shl.u32 = bit.lshift
shl.u64 = bit.lshift
shr.i32 = bit.rshift shr.i32 = bit.rshift
shr.i64 = bit.rshift shr.i64 = bit.rshift
end end