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