diff options
Diffstat (limited to 'meta/template/bit.lua')
-rw-r--r-- | meta/template/bit.lua | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/meta/template/bit.lua b/meta/template/bit.lua index d7cfd302..369c5f9d 100644 --- a/meta/template/bit.lua +++ b/meta/template/bit.lua @@ -7,62 +7,74 @@ bit = {} ---@param x integer ---@return integer y +---@nodiscard function bit.tobit(x) end ---@param x integer ---@param n? integer ---@return integer y +---@nodiscard function bit.tohex(x, n) end ---@param x integer ---@return integer y +---@nodiscard function bit.bnot(x) end ----@param x integer ----@param x2 integer ----@vararg integer +---@param x integer +---@param x2 integer +---@param ... integer ---@return integer y +---@nodiscard function bit.bor(x, x2, ...) end ----@param x integer ----@param x2 integer ----@vararg integer +---@param x integer +---@param x2 integer +---@param ... integer ---@return integer y +---@nodiscard function bit.band(x, x2, ...) end ----@param x integer ----@param x2 integer ----@vararg integer +---@param x integer +---@param x2 integer +---@param ... integer ---@return integer y +---@nodiscard function bit.bxor(x, x2, ...) end ---@param x integer ---@param n integer ---@return integer y +---@nodiscard function bit.lshift(x, n) end ---@param x integer ---@param n integer ---@return integer y +---@nodiscard function bit.rshift(x, n) end ---@param x integer ---@param n integer ---@return integer y +---@nodiscard function bit.arshift(x, n) end ---@param x integer ---@param n integer ---@return integer y +---@nodiscard function bit.rol(x, n) end ---@param x integer ---@param n integer ---@return integer y +---@nodiscard function bit.ror(x, n) end ---@param x integer ---@return integer y +---@nodiscard function bit.bswap(x) end return bit |