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

@@ -51,8 +51,8 @@ const string engine_info(bool to_uci) {
}
ss << (Is64Bit ? " 64" : "")
<< (HasPopCnt ? " SSE4.2" : "")
<< (to_uci ? "\nid author ": " by ")
<< (HasPext ? " BMI2" : (HasPopCnt ? " SSE4.2" : ""))
<< (to_uci ? "\nid author ": " by ")
<< "Tord Romstad, Marco Costalba and Joona Kiiski";
return ss.str();