Last active
December 8, 2022 19:37
-
-
Save UserUNP/4e4608a785bba833e380b4f204279b24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local bit = {} | |
function bit.lshift(a, b) | |
return (a << b) | |
end | |
function bit.rshift(a, b) | |
return (a >> b) | |
end | |
function bit.band(a, b) | |
return (a & b) | |
end | |
function bit.bor(a, b) | |
return (a | b) | |
end | |
function bit.bxor(a, b) | |
return (a ~ b) | |
end | |
function bit.bnot(a) | |
return (~a) | |
end | |
return bit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment