diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-18 12:12:03 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-12-18 12:12:03 -0200 |
commit | c0edab0f6de39ba5ae2e2f1540fa98f1b507afec (patch) | |
tree | 9401b36cf92a0f37ae6a9cf052c99ff11787246e /lopcodes.h | |
parent | a948054a1951cd526c732d6a0e16d99cae837d49 (diff) | |
download | lua-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) */ | |||
191 | 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) */ | 192 | OP_DIV,/* A B C R(A) := RK(B) / RK(C) */ |
193 | OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */ | 193 | OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */ |
194 | OP_BAND,/* A B C R(A) := RK(B) & RK(C) */ | ||
195 | OP_BOR,/* A B C R(A) := RK(B) | RK(C) */ | ||
196 | OP_BXOR,/* A B C R(A) := RK(B) ~ RK(C) */ | ||
194 | OP_UNM,/* A B R(A) := -R(B) */ | 197 | OP_UNM,/* A B R(A) := -R(B) */ |
195 | OP_NOT,/* A B R(A) := not R(B) */ | 198 | OP_NOT,/* A B R(A) := not R(B) */ |
196 | OP_LEN,/* A B R(A) := length of R(B) */ | 199 | OP_LEN,/* A B R(A) := length of R(B) */ |