mirror of https://github.com/rusefi/lua.git
LFIELDS_PER_FLUSH is an opcode detail
This commit is contained in:
parent
b3ffaca638
commit
1c423d2661
|
@ -66,10 +66,8 @@ typedef unsigned char lu_byte;
|
|||
** conversion of pointer to integer
|
||||
** this is for hashing only; there is no problem if the integer
|
||||
** 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
|
||||
|
||||
|
||||
/* number of list items to accumulate before a SETLIST instruction */
|
||||
/* (must be a power of 2) */
|
||||
#define LFIELDS_PER_FLUSH 64
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
12
lopcodes.h
12
lopcodes.h
|
@ -213,16 +213,16 @@ extern const lu_byte luaP_opmodes[NUM_OPCODES];
|
|||
#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)
|
||||
*/
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue