diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-05 16:10:42 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-11-05 16:10:42 -0200 |
commit | 5e76a4fd313a8690d300085c4e8fcb9dca50c01a (patch) | |
tree | 3f4c0be6c09659d01eb14aadec1652d6428e29fa /ltm.h | |
parent | e8c779736f3029df353038352c14c8ab63728811 (diff) | |
download | lua-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |
78 | LUAI_FUNC void luaT_trybinassocTM (lua_State *L, const TValue *p1, | 78 | LUAI_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); |
80 | LUAI_FUNC void luaT_trybiniTM (lua_State *L, const TValue *p1, int i2, | 80 | LUAI_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); |
82 | LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1, | 82 | LUAI_FUNC int luaT_callorderTM (lua_State *L, const TValue *p1, |
83 | const TValue *p2, TMS event); | 83 | const TValue *p2, TMS event); |