Fix OS X compile with Clang 6.0

pull/853/head
Jeffrey Walton 2019-05-31 23:03:24 -04:00
parent 4952fa489d
commit 392ec3465e
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 9 additions and 0 deletions

9
misc.h
View File

@ -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