diff options
Diffstat (limited to '')
| -rw-r--r-- | llimits.h | 9 | ||||
| -rw-r--r-- | lopcodes.h | 12 |
2 files changed, 7 insertions, 14 deletions
| @@ -66,10 +66,8 @@ typedef unsigned char lu_byte; | |||
| 66 | ** conversion of pointer to integer | 66 | ** conversion of pointer to integer |
| 67 | ** this is for hashing only; there is no problem if the integer | 67 | ** this is for hashing only; there is no problem if the integer |
| 68 | ** cannot hold the whole pointer value | 68 | ** cannot hold the whole pointer value |
| 69 | ** (the shift removes bits that are usually 0 because of alignment) | ||
| 70 | */ | 69 | */ |
| 71 | #define IntPoint(p) ((((lu_hash)(p)) >> 4) ^ (lu_hash)(p)) | 70 | #define IntPoint(p) ((lu_hash)(p)) |
| 72 | |||
| 73 | 71 | ||
| 74 | 72 | ||
| 75 | 73 | ||
| @@ -110,10 +108,5 @@ typedef unsigned long Instruction; | |||
| 110 | #endif | 108 | #endif |
| 111 | 109 | ||
| 112 | 110 | ||
| 113 | /* number of list items to accumulate before a SETLIST instruction */ | ||
| 114 | /* (must be a power of 2) */ | ||
| 115 | #define LFIELDS_PER_FLUSH 64 | ||
| 116 | |||
| 117 | |||
| 118 | 111 | ||
| 119 | #endif | 112 | #endif |
| @@ -214,15 +214,15 @@ extern const lu_byte luaP_opmodes[NUM_OPCODES]; | |||
| 214 | 214 | ||
| 215 | 215 | ||
| 216 | /* | 216 | /* |
| 217 | ** constant instructions | ||
| 218 | */ | ||
| 219 | |||
| 220 | extern const Instruction luaP_yieldop; | ||
| 221 | |||
| 222 | /* | ||
| 223 | ** opcode names (only included when compiled with LUA_OPNAMES) | 217 | ** opcode names (only included when compiled with LUA_OPNAMES) |
| 224 | */ | 218 | */ |
| 225 | extern const char *const luaP_opnames[]; | 219 | extern const char *const luaP_opnames[]; |
| 226 | 220 | ||
| 227 | 221 | ||
| 222 | |||
| 223 | /* number of list items to accumulate before a SETLIST instruction */ | ||
| 224 | /* (must be a power of 2) */ | ||
| 225 | #define LFIELDS_PER_FLUSH 32 | ||
| 226 | |||
| 227 | |||
| 228 | #endif | 228 | #endif |
