ensure clang enables XXH_swap* intrinsics

This commit is contained in:
Jack Andersen 2017-11-07 16:27:48 -10:00
parent 6c3a35f15d
commit c7811479f6
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,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 || __clang__
# define XXH_swap32 __builtin_bswap32
# define XXH_swap64 __builtin_bswap64
#else