From c0edab0f6de39ba5ae2e2f1540fa98f1b507afec Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 18 Dec 2013 12:12:03 -0200 Subject: first implementation of bitwise operators '&' (band), '|' (bor), and '~' (bxor) --- lopcodes.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lopcodes.h') diff --git a/lopcodes.h b/lopcodes.h index a5673ade..6894f45f 100644 --- a/lopcodes.h +++ b/lopcodes.h @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.h,v 1.143 2013/04/26 13:07:53 roberto Exp roberto $ +** $Id: lopcodes.h,v 1.144 2013/12/16 19:06:52 roberto Exp roberto $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ @@ -191,6 +191,9 @@ OP_MOD,/* A B C R(A) := RK(B) % RK(C) */ OP_POW,/* A B C R(A) := RK(B) ^ RK(C) */ OP_DIV,/* A B C R(A) := RK(B) / RK(C) */ OP_IDIV,/* A B C R(A) := RK(B) // RK(C) */ +OP_BAND,/* A B C R(A) := RK(B) & RK(C) */ +OP_BOR,/* A B C R(A) := RK(B) | RK(C) */ +OP_BXOR,/* A B C R(A) := RK(B) ~ RK(C) */ OP_UNM,/* A B R(A) := -R(B) */ OP_NOT,/* A B R(A) := not R(B) */ OP_LEN,/* A B R(A) := length of R(B) */ -- cgit v1.2.3-55-g6feb