Browse Source

LFIELDS_PER_FLUSH is an opcode detail

Roberto Ierusalimschy 23 years ago
parent
commit
1c423d2661
2 changed files with 7 additions and 14 deletions
  1. 1 8
      llimits.h
  2. 6 6
      lopcodes.h

+ 1 - 8
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

+ 6 - 6
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