aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-26 10:08:29 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-04-26 10:08:29 -0300
commita2f5c28a802ae99f2045ab96585fade2c65b2037 (patch)
treeeb2ab3d1fc8dc2084505ed4286502ed75b6721ba /lopcodes.h
parenta80a2b5e561b50c1f64e96c3692614611a325aba (diff)
downloadlua-a2f5c28a802ae99f2045ab96585fade2c65b2037.tar.gz
lua-a2f5c28a802ae99f2045ab96585fade2c65b2037.tar.bz2
lua-a2f5c28a802ae99f2045ab96585fade2c65b2037.zip
new operation '//' (integer division)
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index 886cdbcc..e427ce49 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -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) */
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) */ 190OP_DIV,/* A B C R(A) := RK(B) / RK(C) */
191OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */
191OP_MOD,/* A B C R(A) := RK(B) % RK(C) */ 192OP_MOD,/* A B C R(A) := RK(B) % RK(C) */
192OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */ 193OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */
193OP_UNM,/* A B R(A) := -R(B) */ 194OP_UNM,/* A B R(A) := -R(B) */