lua

A copy of the Lua development repository
Log | Files | Refs | README

commit 1c423d266180a37fa00d433ec769b1420d591ba7
parent b3ffaca6381cb5520721af13fff558d3b27d3a36
Author: Roberto Ierusalimschy <roberto@inf.puc-rio.br>
Date:   Thu, 14 Feb 2002 19:42:39 -0200

LFIELDS_PER_FLUSH is an opcode detail

Diffstat:
Mllimits.h | 9+--------
Mlopcodes.h | 12++++++------
2 files changed, 7 insertions(+), 14 deletions(-)

diff --git 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 @@ -214,15 +214,15 @@ extern const lu_byte luaP_opmodes[NUM_OPCODES]; /* -** 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