Guard _blsr_u64 and _tzcnt_u64 on __x86_64__
parent
29bd2bc95c
commit
a327717618
12
misc.h
12
misc.h
|
|
@ -66,17 +66,19 @@
|
||||||
# ifndef _tzcnt_u32
|
# ifndef _tzcnt_u32
|
||||||
# define _tzcnt_u32(x) __tzcnt_u32(x)
|
# define _tzcnt_u32(x) __tzcnt_u32(x)
|
||||||
# endif
|
# endif
|
||||||
#ifndef _tzcnt_u64
|
|
||||||
# define _tzcnt_u64(x) __tzcnt_u64(x)
|
|
||||||
#endif
|
|
||||||
# ifndef _blsr_u32
|
# ifndef _blsr_u32
|
||||||
# define _blsr_u32(x) __blsr_u32(x)
|
# define _blsr_u32(x) __blsr_u32(x)
|
||||||
# endif
|
# endif
|
||||||
|
# ifdef __x86_64__
|
||||||
|
# ifndef _tzcnt_u64
|
||||||
|
# define _tzcnt_u64(x) __tzcnt_u64(x)
|
||||||
|
# endif
|
||||||
# ifndef _blsr_u64
|
# ifndef _blsr_u64
|
||||||
# define _blsr_u64(x) __blsr_u64(x)
|
# define _blsr_u64(x) __blsr_u64(x)
|
||||||
# endif
|
# endif
|
||||||
# endif
|
# endif // x86_64
|
||||||
#endif
|
# endif // Clang
|
||||||
|
#endif // GNUC and BMI
|
||||||
|
|
||||||
#endif // CRYPTOPP_DOXYGEN_PROCESSING
|
#endif // CRYPTOPP_DOXYGEN_PROCESSING
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue