diff options
author | Mike Pall <mike> | 2010-12-05 19:49:29 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-12-05 21:01:08 +0100 |
commit | b1fb71fb981c464868e6bc669363658a98ecbd9e (patch) | |
tree | 88fe921691d957a40c10181c8f13de201a924d31 /src/lj_def.h | |
parent | 6a7605ec85a6e5f91fc539a9e5c18659d73f3530 (diff) | |
download | luajit-b1fb71fb981c464868e6bc669363658a98ecbd9e.tar.gz luajit-b1fb71fb981c464868e6bc669363658a98ecbd9e.tar.bz2 luajit-b1fb71fb981c464868e6bc669363658a98ecbd9e.zip |
Cleanup 64 bit IR type handling.
Diffstat (limited to 'src/lj_def.h')
-rw-r--r-- | src/lj_def.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lj_def.h b/src/lj_def.h index bc3ae937..074090af 100644 --- a/src/lj_def.h +++ b/src/lj_def.h | |||
@@ -89,6 +89,7 @@ typedef unsigned __int32 uintptr_t; | |||
89 | #define checku8(x) ((x) == (int32_t)(uint8_t)(x)) | 89 | #define checku8(x) ((x) == (int32_t)(uint8_t)(x)) |
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 checkptr32(x) ((uintptr_t)(x) == (uint32_t)(uintptr_t)(x)) | 93 | #define checkptr32(x) ((uintptr_t)(x) == (uint32_t)(uintptr_t)(x)) |
93 | 94 | ||
94 | /* Every half-decent C compiler transforms this into a rotate instruction. */ | 95 | /* Every half-decent C compiler transforms this into a rotate instruction. */ |