| 165 | |
| 166 | |
| 167 | static 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 | |
| 177 | static int b_replace (lua_State *L) { |
nothing calls this directly
no test coverage detected