summaryrefslogtreecommitdiff
path: root/meta/template/bit32.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/template/bit32.lua')
-rw-r--r--meta/template/bit32.lua55
1 files changed, 55 insertions, 0 deletions
diff --git a/meta/template/bit32.lua b/meta/template/bit32.lua
new file mode 100644
index 00000000..c3271937
--- /dev/null
+++ b/meta/template/bit32.lua
@@ -0,0 +1,55 @@
+---@class bit32
+bit32 = {}
+
+---@param x integer
+---@param disp integer
+---@return integer
+function bit32.arshift(x, disp) end
+
+---@return integer
+function bit32.band(...) end
+
+---@param x integer
+---@return integer
+function bit32.bnot(x) end
+
+---@return integer
+function bit32.bor(...) end
+
+---@return boolean
+function bit32.btest(...) end
+
+---@return integer
+function bit32.bxor(...) end
+
+---@param n integer
+---@param field integer
+---@param width integer?
+---@return integer
+function bit32.extract(n, field, width) end
+
+---@param n integer
+---@param v integer
+---@param field integer
+---@param width integer?
+function bit32.replace(n, v, field, width) end
+
+---@param x integer
+---@param distp integer
+---@return integer
+function bit32.lrotate(x, distp) end
+
+---@param x integer
+---@param distp integer
+---@return integer
+function bit32.lshift(x, distp) end
+
+---@param x integer
+---@param distp integer
+---@return integer
+function bit32.rrotate(x, distp) end
+
+---@param x integer
+---@param distp integer
+---@return integer
+function bit32.rshift(x, distp) end