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
-9
View File
@@ -177,13 +177,8 @@ do
end
do
local clz = {}
local ctz = {}
local popcnt = {}
clz.i32 = bit32.countlz
ctz.i32 = bit32.countrz
function popcnt.i32(num)
local count = 0
@@ -195,8 +190,6 @@ do
return count
end
module.clz = clz
module.ctz = ctz
module.popcnt = popcnt
end
@@ -272,8 +265,6 @@ do
local bxor = {}
local bnot = {}
bnot.i32 = bit32.bnot
band.i64 = I64.bit_and
bor.i64 = I64.bit_or
bxor.i64 = I64.bit_xor