diff options
Diffstat (limited to 'src/lj_def.h')
-rw-r--r-- | src/lj_def.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_def.h b/src/lj_def.h index 074090af..e72a8ef9 100644 --- a/src/lj_def.h +++ b/src/lj_def.h | |||
@@ -62,7 +62,7 @@ typedef unsigned __int32 uintptr_t; | |||
62 | #define LJ_MIN_SBUF 32 /* Min. string buffer length. */ | 62 | #define LJ_MIN_SBUF 32 /* Min. string buffer length. */ |
63 | #define LJ_MIN_VECSZ 8 /* Min. size for growable vectors. */ | 63 | #define LJ_MIN_VECSZ 8 /* Min. size for growable vectors. */ |
64 | #define LJ_MIN_IRSZ 32 /* Min. size for growable IR. */ | 64 | #define LJ_MIN_IRSZ 32 /* Min. size for growable IR. */ |
65 | #define LJ_MIN_KNUMSZ 16 /* Min. size for chained KNUM array. */ | 65 | #define LJ_MIN_K64SZ 16 /* Min. size for chained K64Array. */ |
66 | 66 | ||
67 | /* JIT compiler limits. */ | 67 | /* JIT compiler limits. */ |
68 | #define LJ_MAX_JSLOTS 250 /* Max. # of stack slots for a trace. */ | 68 | #define LJ_MAX_JSLOTS 250 /* Max. # of stack slots for a trace. */ |
@@ -90,6 +90,7 @@ typedef unsigned __int32 uintptr_t; | |||
90 | #define checki16(x) ((x) == (int32_t)(int16_t)(x)) | 90 | #define checki16(x) ((x) == (int32_t)(int16_t)(x)) |
91 | #define checku16(x) ((x) == (int32_t)(uint16_t)(x)) | 91 | #define checku16(x) ((x) == (int32_t)(uint16_t)(x)) |
92 | #define checki32(x) ((x) == (int32_t)(x)) | 92 | #define checki32(x) ((x) == (int32_t)(x)) |
93 | #define checku32(x) ((x) == (uint32_t)(x)) | ||
93 | #define checkptr32(x) ((uintptr_t)(x) == (uint32_t)(uintptr_t)(x)) | 94 | #define checkptr32(x) ((uintptr_t)(x) == (uint32_t)(uintptr_t)(x)) |
94 | 95 | ||
95 | /* Every half-decent C compiler transforms this into a rotate instruction. */ | 96 | /* Every half-decent C compiler transforms this into a rotate instruction. */ |