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 /lvm.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 'lvm.h')
| -rw-r--r-- | lvm.h | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -114,7 +114,7 @@ LUAI_FUNC void luaV_finishset (lua_State *L, const TValue *t, TValue *key, | |||
| 114 | LUAI_FUNC void luaV_finishOp (lua_State *L); | 114 | LUAI_FUNC void luaV_finishOp (lua_State *L); |
| 115 | LUAI_FUNC void luaV_execute (lua_State *L, CallInfo *ci); | 115 | LUAI_FUNC void luaV_execute (lua_State *L, CallInfo *ci); |
| 116 | LUAI_FUNC void luaV_concat (lua_State *L, int total); | 116 | LUAI_FUNC void luaV_concat (lua_State *L, int total); |
| 117 | LUAI_FUNC lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y); | 117 | LUAI_FUNC lua_Integer luaV_idiv (lua_State *L, lua_Integer x, lua_Integer y); |
| 118 | LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y); | 118 | LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y); |
| 119 | LUAI_FUNC lua_Number luaV_modf (lua_State *L, lua_Number x, lua_Number y); | 119 | LUAI_FUNC lua_Number luaV_modf (lua_State *L, lua_Number x, lua_Number y); |
| 120 | LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y); | 120 | LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y); |
