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:
Jean-Francois Romang
2014-04-10 20:07:40 +02:00
committed by Marco Costalba
parent da2f8880b9
commit 226bbc1e63
3 changed files with 28 additions and 6 deletions

View File

@@ -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