File 残局文料/lua_lib/算机_程语_月_基类_数_位算.lua artifact 993ea5775b part of check-in 5b9fb5e09f
local bit = bit local s = {} -- 和与或 --~ 左数 --~ 右数 function s.位和(o1, o2) return bit.band(o1, o2) end -- 左移与右移 --~ 数 --~ 右移几位 function s.位右移(o1, o2) return bit.rshift(o1, o2) end return s