mirror of
https://github.com/Desour/keyevent.git
synced 2024-10-04 00:23:13 +02:00
maybe improve performance a bit
This commit is contained in:
parent
eaf38e4e03
commit
6ad4ecfbaa
3
init.lua
3
init.lua
@ -77,6 +77,9 @@ local function look_differences(bitsa, bitsb)
|
||||
end
|
||||
|
||||
local function is_different(diff_shall, diff_is)
|
||||
if diff_shall == 511 then
|
||||
return true
|
||||
end
|
||||
for i = #meaning, 0, -1 do
|
||||
local n = 2^i
|
||||
local a = diff_shall - n >= 0
|
||||
|
Loading…
Reference in New Issue
Block a user