We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3eba3a0 + ef4bbf3 commit ae2f31aCopy full SHA for ae2f31a
1 file changed
source/types.h
@@ -24,6 +24,7 @@ typedef uint8_t u8;
24
#define __ORDER_BIG_ENDIAN__ BIG_ENDIAN
25
#endif
26
27
+#ifndef __llvm__
28
static inline uint16_t __builtin_bswap16(uint16_t x)
29
{
30
return ((x << 8) & 0xff00) | ((x >> 8) & 0x00ff);
@@ -43,6 +44,7 @@ static inline uint64_t __builtin_bswap64(uint64_t x)
43
44
((uint64_t)__builtin_bswap32(x&0xFFFFFFFF) << 32);
45
}
46
47
+#endif
48
49
#if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
50
#define be_dword(a) __builtin_bswap64(a)
0 commit comments