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:
parent
f9a9b98362
commit
6bd4df8512
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user