mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-06 10:53:50 +08:00
Prefetch pawn hash key
Plus a bunch of other minor optimizations. With this power pack we have an increase of a whopping 1.4% :-) ...and it took 3 good hours of profiling + hacking to get it out ! No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -845,8 +845,9 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI
|
||||
// Reset rule 50 draw counter
|
||||
st->rule50 = 0;
|
||||
|
||||
// Update pawn hash key
|
||||
// Update pawn hash key and prefetch in L1/L2 cache
|
||||
st->pawnKey ^= zobrist[us][PAWN][from] ^ zobrist[us][PAWN][to];
|
||||
prefetchPawn(st->pawnKey, threadID);
|
||||
|
||||
// Set en passant square, only if moved pawn can be captured
|
||||
if ((to ^ from) == 16)
|
||||
|
||||
Reference in New Issue
Block a user