diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-16 17:06:52 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-16 17:06:52 -0200 |
commit | a948054a1951cd526c732d6a0e16d99cae837d49 (patch) | |
tree | d13984803c85e83eda285a285bd3de2e05a603af /lopcodes.h | |
parent | a8f8c7fd80a5c7e630fd4bf7f858d05024f6b434 (diff) | |
download | lua-a948054a1951cd526c732d6a0e16d99cae837d49.tar.gz lua-a948054a1951cd526c732d6a0e16d99cae837d49.tar.bz2 lua-a948054a1951cd526c732d6a0e16d99cae837d49.zip |
new order for binary operations (grouping them by type of result)
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.142 2011/07/15 12:50:29 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.143 2013/04/26 13:07:53 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 | */ |
@@ -187,10 +187,10 @@ OP_SELF,/* A B C R(A+1) := R(B); R(A) := R(B)[RK(C)] */ | |||
187 | OP_ADD,/* A B C R(A) := RK(B) + RK(C) */ | 187 | 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) */ | ||
191 | OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */ | ||
192 | OP_MOD,/* A B C R(A) := RK(B) % RK(C) */ | 190 | OP_MOD,/* A B C R(A) := RK(B) % RK(C) */ |
193 | OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */ | 191 | OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */ |
192 | OP_DIV,/* A B C R(A) := RK(B) / RK(C) */ | ||
193 | OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */ | ||
194 | OP_UNM,/* A B R(A) := -R(B) */ | 194 | OP_UNM,/* A B R(A) := -R(B) */ |
195 | OP_NOT,/* A B R(A) := not R(B) */ | 195 | OP_NOT,/* A B R(A) := not R(B) */ |
196 | OP_LEN,/* A B R(A) := length of R(B) */ | 196 | OP_LEN,/* A B R(A) := length of R(B) */ |