diff options
author | Mike Pall <mike> | 2010-12-05 21:50:52 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-12-05 22:12:31 +0100 |
commit | 5a13fa69d95993fa68b12be4091f48b80844bdcf (patch) | |
tree | 73ec2ee4d64eec20245f198fde91eff9b3eadf35 /src/lj_def.h | |
parent | b1fb71fb981c464868e6bc669363658a98ecbd9e (diff) | |
download | luajit-5a13fa69d95993fa68b12be4091f48b80844bdcf.tar.gz luajit-5a13fa69d95993fa68b12be4091f48b80844bdcf.tar.bz2 luajit-5a13fa69d95993fa68b12be4091f48b80844bdcf.zip |
Add IR_KINT64.
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. */ |