83 lines
1.4 KiB
Lua
83 lines
1.4 KiB
Lua
PUSH [===[]===]
|
|
if not JIT then DISABLE() end
|
|
PUSH [===[
|
|
---@meta bit
|
|
|
|
---@version JIT
|
|
---@class bitlib
|
|
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
|
|
---@param ... integer
|
|
---@return integer y
|
|
---@nodiscard
|
|
function bit.bor(x, x2, ...) end
|
|
|
|
---@param x integer
|
|
---@param x2 integer
|
|
---@param ... integer
|
|
---@return integer y
|
|
---@nodiscard
|
|
function bit.band(x, x2, ...) end
|
|
|
|
---@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
|
|
]===] |