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.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index 53e15c7f..23a97a62 100644 --- a/ltm.c +++ b/ltm.c @@ -176,7 +176,7 @@ void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2, } -void luaT_trybiniTM (lua_State *L, const TValue *p1, int i2, +void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, int inv, StkId res, TMS event) { TValue aux; setivalue(&aux, i2); -- cgit v1.2.3-55-g6feb