Skip to content

Commit f693892

Browse files
committed
Don't use __builtin_rotateleft32 for Intel on OSX
1 parent da5bcd2 commit f693892

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/tests/hash_functions/nmhash.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ extern "C" {
5151
#endif
5252

5353
#if defined(__has_builtin)
54-
# if __has_builtin(__builtin_rotateleft32)
54+
# if __has_builtin(__builtin_rotateleft32) \
55+
&& !(defined(__INTEL_COMPILER) && defined(__APPLE__))
5556
# define NMH_rotl32 __builtin_rotateleft32 /* clang */
5657
# endif
5758
#endif

src/tests/hash_functions/nmhash_scalar.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ extern "C" {
5151
#endif
5252

5353
#if defined(__has_builtin)
54-
# if __has_builtin(__builtin_rotateleft32)
54+
# if __has_builtin(__builtin_rotateleft32) \
55+
&& !(defined(__INTEL_COMPILER) && defined(__APPLE__))
5556
# define NMH_rotl32 __builtin_rotateleft32 /* clang */
5657
# endif
5758
#endif

0 commit comments

Comments
 (0)