Expand inlineable runtime functions

This commit is contained in:
Rerumu
2022-06-26 03:40:28 -04:00
parent 75582f40bf
commit 201f0b286f
4 changed files with 18 additions and 61 deletions
-35
View File
@@ -261,41 +261,6 @@ do
module.gt = gt
end
do
local bnot = {}
bnot.i32 = bit.bnot
bnot.i64 = bit.bnot
module.bnot = bnot
end
do
local shl = {}
local shr = {}
local rotl = {}
local rotr = {}
shl.i32 = bit.lshift
shl.u32 = bit.lshift
shr.i32 = bit.arshift
shr.u32 = bit.rshift
rotl.i32 = bit.rol
rotr.i32 = bit.ror
shl.i64 = bit.lshift
shl.u64 = bit.lshift
shr.i64 = bit.arshift
shr.u64 = bit.rshift
rotl.i64 = bit.rol
rotr.i64 = bit.ror
module.shl = shl
module.shr = shr
module.rotl = rotl
module.rotr = rotr
end
do
local wrap = {}
local trunc = {}