From 9b38a696d5ccd6dd98685a74e8762a69e8722840 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 24 Apr 2002 17:07:46 -0300 Subject: avoid names that differ only in capitalization --- lopcodes.h | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'lopcodes.h') diff --git a/lopcodes.h b/lopcodes.h index 15e1f09d..627bf54e 100644 --- a/lopcodes.h +++ b/lopcodes.h @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.h,v 1.93 2002/03/25 17:47:14 roberto Exp roberto $ +** $Id: lopcodes.h,v 1.94 2002/04/09 19:47:44 roberto Exp roberto $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ @@ -17,8 +17,8 @@ `A' : 8 bits (25-32) `B' : 8 bits (17-24) `C' : 10 bits (7-16) - `Bc' : 18 bits (`B' and `C' together) - `sBc' : signed Bc + `Bx' : 18 bits (`B' and `C' together) + `sBx' : signed Bx A signed argument is represented in excess K; that is, the number value is the unsigned value minus K. K is exactly the maximum value @@ -28,7 +28,7 @@ ===========================================================================*/ -enum OpMode {iABC, iABc, iAsBc}; /* basic instruction format */ +enum OpMode {iABC, iABx, iAsBx}; /* basic instruction format */ /* @@ -36,14 +36,14 @@ enum OpMode {iABC, iABc, iAsBc}; /* basic instruction format */ */ #define SIZE_C 10 #define SIZE_B 8 -#define SIZE_Bc (SIZE_C + SIZE_B) +#define SIZE_Bx (SIZE_C + SIZE_B) #define SIZE_A 8 #define SIZE_OP 6 #define POS_C SIZE_OP #define POS_B (POS_C + SIZE_C) -#define POS_Bc POS_C +#define POS_Bx POS_C #define POS_A (POS_B + SIZE_B) @@ -52,12 +52,12 @@ enum OpMode {iABC, iABc, iAsBc}; /* basic instruction format */ ** we use (signed) int to manipulate most arguments, ** so they must fit in BITS_INT-1 bits (-1 for sign) */ -#if SIZE_Bc < BITS_INT-1 -#define MAXARG_Bc ((1<>1) /* `sBc' is signed */ +#if SIZE_Bx < BITS_INT-1 +#define MAXARG_Bx ((1<>1) /* `sBx' is signed */ #else -#define MAXARG_Bc MAX_INT -#define MAXARG_sBc MAX_INT +#define MAXARG_Bx MAX_INT +#define MAXARG_sBx MAX_INT #endif @@ -91,12 +91,12 @@ enum OpMode {iABC, iABc, iAsBc}; /* basic instruction format */ #define SETARG_C(i,b) ((i) = (((i)&MASK0(SIZE_C,POS_C)) | \ (cast(Instruction, b)<>POS_Bc) & MASK1(SIZE_Bc,0))) -#define SETARG_Bc(i,b) ((i) = (((i)&MASK0(SIZE_Bc,POS_Bc)) | \ - (cast(Instruction, b)<>POS_Bx) & MASK1(SIZE_Bx,0))) +#define SETARG_Bx(i,b) ((i) = (((i)&MASK0(SIZE_Bx,POS_Bx)) | \ + (cast(Instruction, b)<=) R(A)*/ -OP_CLOSURE/* A Bc R(A) := closure(KPROTO[Bc], R(A), ... ,R(A+n)) */ +OP_CLOSURE/* A Bx R(A) := closure(KPROTO[Bx], R(A), ... ,R(A+n)) */ } OpCode; @@ -207,7 +207,7 @@ enum OpModeMask { OpModeBreg = 2, /* B is a register */ OpModeCreg, /* C is a register/constant */ OpModesetA, /* instruction set register A */ - OpModeK, /* Bc is a constant */ + OpModeK, /* Bx is a constant */ OpModeT /* operator is a test */ }; -- cgit v1.2.3-55-g6feb