Skip to content

Instantly share code, notes, and snippets.

@UserUNP
Last active December 8, 2022 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UserUNP/4e4608a785bba833e380b4f204279b24 to your computer and use it in GitHub Desktop.
Save UserUNP/4e4608a785bba833e380b4f204279b24 to your computer and use it in GitHub Desktop.
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