mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-27 03:40:22 +00:00
Fix undeclared identifiers '_tzcnt_u32' and '__blsr_u32' under Clang (Issue 205)
This commit is contained in:
parent
5b96c03ecb
commit
7d02a3c74d
7
misc.h
7
misc.h
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
// misc.h - written and placed in the public domain by Wei Dai
|
// misc.h - written and placed in the public domain by Wei Dai
|
||||||
|
|
||||||
//! \file misc.h
|
//! \file misc.h
|
||||||
@ -61,6 +62,12 @@
|
|||||||
|
|
||||||
#if defined(__GNUC__) && defined(__BMI__)
|
#if defined(__GNUC__) && defined(__BMI__)
|
||||||
# include <immintrin.h>
|
# include <immintrin.h>
|
||||||
|
# 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
|
||||||
|
|
||||||
#endif // CRYPTOPP_DOXYGEN_PROCESSING
|
#endif // CRYPTOPP_DOXYGEN_PROCESSING
|
||||||
|
Loading…
Reference in New Issue
Block a user