LFIELDS_PER_FLUSH is an opcode detail

This commit is contained in:
Roberto Ierusalimschy
2002-02-14 19:43:01 -02:00
parent b3ffaca638
commit 1c423d2661
2 changed files with 7 additions and 14 deletions

View File

@@ -66,10 +66,8 @@ typedef unsigned char lu_byte;
** conversion of pointer to integer ** conversion of pointer to integer
** this is for hashing only; there is no problem if the integer ** this is for hashing only; there is no problem if the integer
** cannot hold the whole pointer value ** cannot hold the whole pointer value
** (the shift removes bits that are usually 0 because of alignment)
*/ */
#define IntPoint(p) ((((lu_hash)(p)) >> 4) ^ (lu_hash)(p)) #define IntPoint(p) ((lu_hash)(p))
@@ -110,10 +108,5 @@ typedef unsigned long Instruction;
#endif #endif
/* number of list items to accumulate before a SETLIST instruction */
/* (must be a power of 2) */
#define LFIELDS_PER_FLUSH 64
#endif #endif

View File

@@ -213,16 +213,16 @@ extern const lu_byte luaP_opmodes[NUM_OPCODES];
#define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b))) #define testOpMode(m, b) (luaP_opmodes[m] & (1 << (b)))
/*
** constant instructions
*/
extern const Instruction luaP_yieldop;
/* /*
** opcode names (only included when compiled with LUA_OPNAMES) ** opcode names (only included when compiled with LUA_OPNAMES)
*/ */
extern const char *const luaP_opnames[]; extern const char *const luaP_opnames[];
/* number of list items to accumulate before a SETLIST instruction */
/* (must be a power of 2) */
#define LFIELDS_PER_FLUSH 32
#endif #endif