mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Further speed up bitbase generation
Another trick, along the same lines of previous patch. This time we first check positions with white side to move that, becuase we start with pawn on rank 7, are easily classified as wins, then black ones. Number of cycles reduced to 15 ! Becuase now it is faster we can remove a lot of code to detect theoretical draws. We will calculate them anyhow, although a bit slower, but the speed up trick more than compensates it. Verified that generated bitbases match original ones. No functional change.
This commit is contained in:
@@ -33,7 +33,7 @@ void print(Bitboard b);
|
||||
namespace Bitbases {
|
||||
|
||||
void init_kpk();
|
||||
bool probe_kpk(Square wksq, Square wpsq, Square bksq, Color stm);
|
||||
bool probe_kpk(Square wksq, Square wpsq, Square bksq, Color us);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user