Closed Someon1e closed 6 months ago
Check vector equality with a == b instead of a.X == b.X and a.Y == b.Y and a.Z == b.Z
a == b
a.X == b.X and a.Y == b.Y and a.Z == b.Z
Replace load_d1(x), load_d2(x) with into_u32(x)
load_d1(x), load_d2(x)
into_u32(x)
Branchless popcnt_i32
Truncate with bor(x, 0) instead of band(x, 0xFFFFFFFF)
Reorder function assignments
function TABLE.FUNCTION() ... end local f = TABLE.FUNCTION
local function f() ... end TABLE.FUNCTION = f
Add --!optimize 2 comment directive automatically
--!optimize 2
Solid stuff. Thank you.
Check vector equality with
a == b
instead ofa.X == b.X and a.Y == b.Y and a.Z == b.Z
Replace
load_d1(x), load_d2(x)
withinto_u32(x)
Branchless popcnt_i32
Truncate with bor(x, 0) instead of band(x, 0xFFFFFFFF)
Reorder function assignments
Add
--!optimize 2
comment directive automatically