aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-12-18 12:12:03 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-12-18 12:12:03 -0200
commitc0edab0f6de39ba5ae2e2f1540fa98f1b507afec (patch)
tree9401b36cf92a0f37ae6a9cf052c99ff11787246e /lopcodes.h
parenta948054a1951cd526c732d6a0e16d99cae837d49 (diff)
downloadlua-c0edab0f6de39ba5ae2e2f1540fa98f1b507afec.tar.gz
lua-c0edab0f6de39ba5ae2e2f1540fa98f1b507afec.tar.bz2
lua-c0edab0f6de39ba5ae2e2f1540fa98f1b507afec.zip
first implementation of bitwise operators '&' (band), '|' (bor),
and '~' (bxor)
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index a5673ade..6894f45f 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.143 2013/04/26 13:07:53 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.144 2013/12/16 19:06:52 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*/
@@ -191,6 +191,9 @@ OP_MOD,/* A B C R(A) := RK(B) % RK(C) */
191OP_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) */ 192OP_DIV,/* A B C R(A) := RK(B) / RK(C) */
193OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */ 193OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */
194OP_BAND,/* A B C R(A) := RK(B) & RK(C) */
195OP_BOR,/* A B C R(A) := RK(B) | RK(C) */
196OP_BXOR,/* A B C R(A) := RK(B) ~ RK(C) */
194OP_UNM,/* A B R(A) := -R(B) */ 197OP_UNM,/* A B R(A) := -R(B) */
195OP_NOT,/* A B R(A) := not R(B) */ 198OP_NOT,/* A B R(A) := not R(B) */
196OP_LEN,/* A B R(A) := length of R(B) */ 199OP_LEN,/* A B R(A) := length of R(B) */