MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / b_extract

Function b_extract

third-party/lua-5.2.4/src/lbitlib.c:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166
167static int b_extract (lua_State *L) {
168 int w;
169 b_uint r = luaL_checkunsigned(L, 1);
170 int f = fieldargs(L, 2, &w);
171 r = (r >> f) & mask(w);
172 lua_pushunsigned(L, r);
173 return 1;
174}
175
176
177static int b_replace (lua_State *L) {

Callers

nothing calls this directly

Calls 3

luaL_checkunsignedFunction · 0.85
lua_pushunsignedFunction · 0.85
fieldargsFunction · 0.70

Tested by

no test coverage detected