summaryrefslogtreecommitdiff
path: root/meta/template/bit32.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-11 23:03:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-11 23:03:09 +0800
commit9adba2607bfd7b10879492ceb7b8926723bf40d3 (patch)
treefbc25cfd291bff8c2d04cad4b9de0a73418cb9b9 /meta/template/bit32.lua
parent216fe5bf4677010af04238d8e0722e19b4acb3be (diff)
downloadlua-language-server-9adba2607bfd7b10879492ceb7b8926723bf40d3.zip
暂存
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