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.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/template/bit32.lua b/meta/template/bit32.lua
index 85bd04f1..bcb39c66 100644
--- a/meta/template/bit32.lua
+++ b/meta/template/bit32.lua
@@ -10,27 +10,33 @@ bit32 = {}
---@param x integer
---@param disp integer
---@return integer
+---@nodiscard
function bit32.arshift(x, disp) end
---#DES 'bit32.band'
---@return integer
+---@nodiscard
function bit32.band(...) end
---#DES 'bit32.bnot'
---@param x integer
---@return integer
+---@nodiscard
function bit32.bnot(x) end
---#DES 'bit32.bor'
---@return integer
+---@nodiscard
function bit32.bor(...) end
---#DES 'bit32.btest'
---@return boolean
+---@nodiscard
function bit32.btest(...) end
---#DES 'bit32.bxor'
---@return integer
+---@nodiscard
function bit32.bxor(...) end
---#DES 'bit32.extract'
@@ -38,6 +44,7 @@ function bit32.bxor(...) end
---@param field integer
---@param width? integer
---@return integer
+---@nodiscard
function bit32.extract(n, field, width) end
---#DES 'bit32.replace'
@@ -45,30 +52,35 @@ function bit32.extract(n, field, width) end
---@param v integer
---@param field integer
---@param width? integer
+---@nodiscard
function bit32.replace(n, v, field, width) end
---#DES 'bit32.lrotate'
---@param x integer
---@param distp integer
---@return integer
+---@nodiscard
function bit32.lrotate(x, distp) end
---#DES 'bit32.lshift'
---@param x integer
---@param distp integer
---@return integer
+---@nodiscard
function bit32.lshift(x, distp) end
---#DES 'bit32.rrotate'
---@param x integer
---@param distp integer
---@return integer
+---@nodiscard
function bit32.rrotate(x, distp) end
---#DES 'bit32.rshift'
---@param x integer
---@param distp integer
---@return integer
+---@nodiscard
function bit32.rshift(x, distp) end
return bit32