diff --git a/misc.h b/misc.h index 17dfdf79..894344a2 100644 --- a/misc.h +++ b/misc.h @@ -1,3 +1,4 @@ + // misc.h - written and placed in the public domain by Wei Dai //! \file misc.h @@ -61,6 +62,12 @@ #if defined(__GNUC__) && defined(__BMI__) # include +# if defined(__clang__) +# define _tzcnt_u32(x) __tzcnt_u32(x) +# define _tzcnt_u64(x) __tzcnt_u64(x) +# define _blsr_u32(x) __blsr_u32(x) +# define _blsr_u64(x) __blsr_u64(x) +# endif #endif #endif // CRYPTOPP_DOXYGEN_PROCESSING