Don't use __builtin_bswap for RISC-V due to undefined reference

in compiler.

This unbreaks RISC-V world build.

Sponsored by:	DARPA, AFRL
This commit is contained in:
Ruslan Bukin 2017-04-19 15:24:33 +00:00
parent 5d01277f59
commit 2452e16e5b

View file

@ -206,7 +206,7 @@ static U64 XXH_read64(const void* memPtr)
#if defined(_MSC_VER) /* Visual Studio */
# define XXH_swap32 _byteswap_ulong
# define XXH_swap64 _byteswap_uint64
#elif GCC_VERSION >= 403
#elif (GCC_VERSION >= 403 && !defined(__riscv__))
# define XXH_swap32 __builtin_bswap32
# define XXH_swap64 __builtin_bswap64
#else