aboutsummaryrefslogtreecommitdiff
path: root/lvm.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 /lvm.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 'lvm.h')
-rw-r--r--lvm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lvm.h b/lvm.h
index 8ead0c50..7e8ec715 100644
--- a/lvm.h
+++ b/lvm.h
@@ -114,7 +114,7 @@ LUAI_FUNC void luaV_finishset (lua_State *L, const TValue *t, TValue *key,
114LUAI_FUNC void luaV_finishOp (lua_State *L); 114LUAI_FUNC void luaV_finishOp (lua_State *L);
115LUAI_FUNC void luaV_execute (lua_State *L, CallInfo *ci); 115LUAI_FUNC void luaV_execute (lua_State *L, CallInfo *ci);
116LUAI_FUNC void luaV_concat (lua_State *L, int total); 116LUAI_FUNC void luaV_concat (lua_State *L, int total);
117LUAI_FUNC lua_Integer luaV_div (lua_State *L, lua_Integer x, lua_Integer y); 117LUAI_FUNC lua_Integer luaV_idiv (lua_State *L, lua_Integer x, lua_Integer y);
118LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y); 118LUAI_FUNC lua_Integer luaV_mod (lua_State *L, lua_Integer x, lua_Integer y);
119LUAI_FUNC lua_Number luaV_modf (lua_State *L, lua_Number x, lua_Number y); 119LUAI_FUNC lua_Number luaV_modf (lua_State *L, lua_Number x, lua_Number y);
120LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y); 120LUAI_FUNC lua_Integer luaV_shiftl (lua_Integer x, lua_Integer y);