diff options
Diffstat (limited to 'src/lj_def.h')
-rw-r--r-- | src/lj_def.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_def.h b/src/lj_def.h index 5e63da3e..cfe18c48 100644 --- a/src/lj_def.h +++ b/src/lj_def.h | |||
@@ -120,7 +120,7 @@ typedef uintptr_t BloomFilter; | |||
120 | #define bloomset(b, x) ((b) |= bloombit((x))) | 120 | #define bloomset(b, x) ((b) |= bloombit((x))) |
121 | #define bloomtest(b, x) ((b) & bloombit((x))) | 121 | #define bloomtest(b, x) ((b) & bloombit((x))) |
122 | 122 | ||
123 | #if defined(__GNUC__) || defined(__psp2__) | 123 | #if defined(__GNUC__) || defined(__clang__) || defined(__psp2__) |
124 | 124 | ||
125 | #define LJ_NORET __attribute__((noreturn)) | 125 | #define LJ_NORET __attribute__((noreturn)) |
126 | #define LJ_ALIGN(n) __attribute__((aligned(n))) | 126 | #define LJ_ALIGN(n) __attribute__((aligned(n))) |
@@ -182,7 +182,7 @@ static LJ_AINLINE uint64_t lj_bswap64(uint64_t x) | |||
182 | { | 182 | { |
183 | return ((uint64_t)lj_bswap((uint32_t)x)<<32) | lj_bswap((uint32_t)(x>>32)); | 183 | return ((uint64_t)lj_bswap((uint32_t)x)<<32) | lj_bswap((uint32_t)(x>>32)); |
184 | } | 184 | } |
185 | #elif (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) | 185 | #elif (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3) || __clang__ |
186 | static LJ_AINLINE uint32_t lj_bswap(uint32_t x) | 186 | static LJ_AINLINE uint32_t lj_bswap(uint32_t x) |
187 | { | 187 | { |
188 | return (uint32_t)__builtin_bswap32((int32_t)x); | 188 | return (uint32_t)__builtin_bswap32((int32_t)x); |