diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-26 10:08:29 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-04-26 10:08:29 -0300 |
commit | a2f5c28a802ae99f2045ab96585fade2c65b2037 (patch) | |
tree | eb2ab3d1fc8dc2084505ed4286502ed75b6721ba /lopcodes.h | |
parent | a80a2b5e561b50c1f64e96c3692614611a325aba (diff) | |
download | lua-a2f5c28a802ae99f2045ab96585fade2c65b2037.tar.gz lua-a2f5c28a802ae99f2045ab96585fade2c65b2037.tar.bz2 lua-a2f5c28a802ae99f2045ab96585fade2c65b2037.zip |
new operation '//' (integer division)
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.141 2011/04/19 16:22:13 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.142 2011/07/15 12:50:29 roberto Exp roberto $ |
3 | ** Opcodes for Lua virtual machine | 3 | ** Opcodes for Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -188,6 +188,7 @@ OP_ADD,/* A B C R(A) := RK(B) + RK(C) */ | |||
188 | OP_SUB,/* A B C R(A) := RK(B) - RK(C) */ | 188 | OP_SUB,/* A B C R(A) := RK(B) - RK(C) */ |
189 | OP_MUL,/* A B C R(A) := RK(B) * RK(C) */ | 189 | OP_MUL,/* A B C R(A) := RK(B) * RK(C) */ |
190 | OP_DIV,/* A B C R(A) := RK(B) / RK(C) */ | 190 | OP_DIV,/* A B C R(A) := RK(B) / RK(C) */ |
191 | OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */ | ||
191 | OP_MOD,/* A B C R(A) := RK(B) % RK(C) */ | 192 | OP_MOD,/* A B C R(A) := RK(B) % RK(C) */ |
192 | OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */ | 193 | OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */ |
193 | OP_UNM,/* A B R(A) := -R(B) */ | 194 | OP_UNM,/* A B R(A) := -R(B) */ |