From 5e76a4fd313a8690d300085c4e8fcb9dca50c01a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 5 Nov 2018 16:10:42 -0200 Subject: New macros for arithmetic/bitwise operations in 'luaV_execute' The repetitive code of the arithmetic and bitwise operators in the main iterpreter loop was moved to appropriate macros. (As a detail, the function 'luaV_div' was renamed 'luaV_idiv', as it does an "integer division" (floor division). --- ltm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltm.h') diff --git a/ltm.h b/ltm.h index e8560f82..fad47842 100644 --- a/ltm.h +++ b/ltm.h @@ -77,7 +77,7 @@ LUAI_FUNC void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event); LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2, StkId res, int inv, TMS event); -LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, int i2, +LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, int inv, StkId res, TMS event); LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1, const TValue *p2, TMS event); -- cgit v1.2.3-55-g6feb