Skip to content

Commit

Permalink
Merge pull request #976 from crrodriguez/dev
Browse files Browse the repository at this point in the history
add GCC >=15 __builtin_stdc_rotate_left suppor to rotl
  • Loading branch information
Cyan4973 authored Nov 3, 2024
2 parents 7546e25 + a870068 commit 51640fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xxhash.h
Original file line number Diff line number Diff line change
Expand Up @@ -2746,6 +2746,9 @@ static int XXH_isLittleEndian(void)
&& XXH_HAS_BUILTIN(__builtin_rotateleft64)
# define XXH_rotl32 __builtin_rotateleft32
# define XXH_rotl64 __builtin_rotateleft64
#elif XXH_HAS_BUILTIN(__builtin_stdc_rotate_left)
# define XXH_rotl32 __builtin_stdc_rotate_left
# define XXH_rotl64 __builtin_stdc_rotate_left
/* Note: although _rotl exists for minGW (GCC under windows), performance seems poor */
#elif defined(_MSC_VER)
# define XXH_rotl32(x,r) _rotl(x,r)
Expand Down

0 comments on commit 51640fe

Please sign in to comment.