aboutsummaryrefslogtreecommitdiff
path: root/ltm.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-05 16:10:42 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-11-05 16:10:42 -0200
commit5e76a4fd313a8690d300085c4e8fcb9dca50c01a (patch)
tree3f4c0be6c09659d01eb14aadec1652d6428e29fa /ltm.h
parente8c779736f3029df353038352c14c8ab63728811 (diff)
downloadlua-5e76a4fd313a8690d300085c4e8fcb9dca50c01a.tar.gz
lua-5e76a4fd313a8690d300085c4e8fcb9dca50c01a.tar.bz2
lua-5e76a4fd313a8690d300085c4e8fcb9dca50c01a.zip
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).
Diffstat (limited to 'ltm.h')
-rw-r--r--ltm.h2
1 files changed, 1 insertions, 1 deletions
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,
77 StkId res, TMS event); 77 StkId res, TMS event);
78LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1, 78LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1,
79 const TValue *p2, StkId res, int inv, TMS event); 79 const TValue *p2, StkId res, int inv, TMS event);
80LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, int i2, 80LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2,
81 int inv, StkId res, TMS event); 81 int inv, StkId res, TMS event);
82LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1, 82LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1,
83 const TValue *p2, TMS event); 83 const TValue *p2, TMS event);