summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2019-05-31 23:03:24 -0400
committerJeffrey Walton <noloader@gmail.com>2019-05-31 23:03:24 -0400
commit392ec3465e4225338cf0dd94423d42c0cd6531bb (patch)
treecbf3cd81712d85903e430751fc8b050b38f13a1e /misc.h
parent4952fa489d43ca87dc50517917525caa92cc0cc9 (diff)
downloadcryptopp-git-392ec3465e4225338cf0dd94423d42c0cd6531bb.tar.gz
Fix OS X compile with Clang 6.0
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/misc.h b/misc.h
index a8f8383b..87760617 100644
--- a/misc.h
+++ b/misc.h
@@ -77,8 +77,17 @@
#if defined(__BMI__)
# include <x86intrin.h>
+# include <immintrin.h>
#endif // GCC and BMI
+// More LLVM bullshit
+#if defined(__clang__)
+# define _blsr_u32 __blsr_u32
+# define _blsr_u64 __blsr_u64
+# define _tzcnt_u32 __tzcnt_u32
+# define _tzcnt_u64 __tzcnt_u64
+#endif
+
#endif // CRYPTOPP_DOXYGEN_PROCESSING
#if CRYPTOPP_DOXYGEN_PROCESSING