X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=10f0d8742d228a3d205a14ec087f6f28f66c5e3f;hp=fb0a32f3acf29c56d7231d59b15baeda3c092031;hb=7b721b3663920a2b74039ad6588ba4ed638c368b;hpb=b6ba5f7fe414e95c645fc31a989c1a4ed5fd423d diff --git a/src/position.cpp b/src/position.cpp index fb0a32f3..10f0d874 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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)