mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-21 17:46:26 +08:00
Add ARCH x86-64-bmi2 support
Intel Haswell and newer CPUs can calculate sliders attacks using special PEXT asm instructions instead of magic bitboards. This gives a +3% speed up. To enable it just compile with ARCH=x86-64-bmi2 No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
da2f8880b9
commit
226bbc1e63
@@ -55,7 +55,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(USE_PEXT)
|
||||
# include <x86intrin.h> // Gcc header for _pext_u64() intrinsic
|
||||
# include <immintrin.h> // Header for _pext_u64() intrinsic
|
||||
#else
|
||||
# define _pext_u64(b, m) (0)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user