diff options
Diffstat (limited to 'ltests.c')
-rw-r--r-- | ltests.c | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -1103,14 +1103,6 @@ static int doremote (lua_State *L) { | |||
1103 | } | 1103 | } |
1104 | 1104 | ||
1105 | 1105 | ||
1106 | static int int2fb_aux (lua_State *L) { | ||
1107 | int b = luaO_int2fb((unsigned int)luaL_checkinteger(L, 1)); | ||
1108 | lua_pushinteger(L, b); | ||
1109 | lua_pushinteger(L, (unsigned int)luaO_fb2int(b)); | ||
1110 | return 2; | ||
1111 | } | ||
1112 | |||
1113 | |||
1114 | static int log2_aux (lua_State *L) { | 1106 | static int log2_aux (lua_State *L) { |
1115 | unsigned int x = (unsigned int)luaL_checkinteger(L, 1); | 1107 | unsigned int x = (unsigned int)luaL_checkinteger(L, 1); |
1116 | lua_pushinteger(L, luaO_ceillog2(x)); | 1108 | lua_pushinteger(L, luaO_ceillog2(x)); |
@@ -1780,7 +1772,6 @@ static const struct luaL_Reg tests_funcs[] = { | |||
1780 | {"pobj", gc_printobj}, | 1772 | {"pobj", gc_printobj}, |
1781 | {"getref", getref}, | 1773 | {"getref", getref}, |
1782 | {"hash", hash_query}, | 1774 | {"hash", hash_query}, |
1783 | {"int2fb", int2fb_aux}, | ||
1784 | {"log2", log2_aux}, | 1775 | {"log2", log2_aux}, |
1785 | {"limits", get_limits}, | 1776 | {"limits", get_limits}, |
1786 | {"listcode", listcode}, | 1777 | {"listcode", listcode}, |