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.c | |
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.c')
-rw-r--r-- | ltm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -176,7 +176,7 @@ void luaT_trybinassocTM (lua_State *L, const TValue *p1, const TValue *p2, | |||
176 | } | 176 | } |
177 | 177 | ||
178 | 178 | ||
179 | void luaT_trybiniTM (lua_State *L, const TValue *p1, int i2, | 179 | void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, |
180 | int inv, StkId res, TMS event) { | 180 | int inv, StkId res, TMS event) { |
181 | TValue aux; | 181 | TValue aux; |
182 | setivalue(&aux, i2); | 182 | setivalue(&aux, i2); |