summaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-12-16 17:06:52 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-12-16 17:06:52 -0200
commita948054a1951cd526c732d6a0e16d99cae837d49 (patch)
treed13984803c85e83eda285a285bd3de2e05a603af /lopcodes.h
parenta8f8c7fd80a5c7e630fd4bf7f858d05024f6b434 (diff)
downloadlua-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lopcodes.h b/lopcodes.h
index e427ce49..a5673ade 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -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)] */
187OP_ADD,/* A B C R(A) := RK(B) + RK(C) */ 187OP_ADD,/* A B C R(A) := RK(B) + RK(C) */
188OP_SUB,/* A B C R(A) := RK(B) - RK(C) */ 188OP_SUB,/* A B C R(A) := RK(B) - RK(C) */
189OP_MUL,/* A B C R(A) := RK(B) * RK(C) */ 189OP_MUL,/* A B C R(A) := RK(B) * RK(C) */
190OP_DIV,/* A B C R(A) := RK(B) / RK(C) */
191OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */
192OP_MOD,/* A B C R(A) := RK(B) % RK(C) */ 190OP_MOD,/* A B C R(A) := RK(B) % RK(C) */
193OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */ 191OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */
192OP_DIV,/* A B C R(A) := RK(B) / RK(C) */
193OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */
194OP_UNM,/* A B R(A) := -R(B) */ 194OP_UNM,/* A B R(A) := -R(B) */
195OP_NOT,/* A B R(A) := not R(B) */ 195OP_NOT,/* A B R(A) := not R(B) */
196OP_LEN,/* A B R(A) := length of R(B) */ 196OP_LEN,/* A B R(A) := length of R(B) */