Config/Platform

This commit is contained in:
powturbo
2016-04-24 21:59:37 +02:00
parent 2c9c893c3f
commit 863e2fe6a9

4
conf.h
View File

@ -59,7 +59,11 @@ static inline unsigned ror32(unsigned x, int s) { return x >> s | x << (32 - s);
#define clz64(_x_) __builtin_clzll(_x_)
#define clz32(_x_) __builtin_clz(_x_)
#if __GNUC_MINOR__ < 8
static inline unsigned short bswap16(unsigned short a) { return (a<<8)|(a>>8); }
#else
#define bswap16(x) __builtin_bswap16(x)
#endif
#define bswap32(x) __builtin_bswap32(x)
#define bswap64(x) __builtin_bswap64(x)