mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00:00
Switch to hardware PEXT
Retire software pext and introduce hardware call when USE_PEXT is defined during compilation. This is a full complete implementation of sliding attacks using PEXT. No functional change.
This commit is contained in:
@@ -54,6 +54,12 @@
|
||||
# include <nmmintrin.h> // Intel header for _mm_popcnt_u64() intrinsic
|
||||
#endif
|
||||
|
||||
#if defined(USE_PEXT)
|
||||
# include <x86intrin.h> // Gcc header for _pext_u64() intrinsic
|
||||
#else
|
||||
# define _pext_u64(b, m) (0)
|
||||
#endif
|
||||
|
||||
# if !defined(NO_PREFETCH) && (defined(__INTEL_COMPILER) || defined(_MSC_VER))
|
||||
# include <xmmintrin.h> // Intel and Microsoft header for _mm_prefetch()
|
||||
# endif
|
||||
|
||||
Reference in New Issue
Block a user