diff --git a/llimits.h b/llimits.h index 588c770b..7e158638 100644 --- a/llimits.h +++ b/llimits.h @@ -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 diff --git a/lopcodes.h b/lopcodes.h index e72ac0cd..29ff40aa 100644 --- a/lopcodes.h +++ b/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