Skip to content

Commit 385deef

Browse files
mstemberasnicolet
authored andcommitted
Fix sometimes incorrect key for prefetches
STC https://tests.stockfishchess.org/tests/view/61737b4f6ce927be32558401 LLR: 2.95 (-2.94,2.94) <-2.50,0.50> Total: 138712 W: 34914 L: 34942 D: 68856 Ptnml(0-2): 421, 14817, 38894, 14817, 407 Very minor tweak since Position::key() depends on the 50 move rule counter. Comments: mstembera@cddde31 closes #3759 No functional change
1 parent 2c86ae1 commit 385deef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/position.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,9 +1013,9 @@ void Position::do_null_move(StateInfo& newSt) {
10131013
}
10141014

10151015
st->key ^= Zobrist::side;
1016+
++st->rule50;
10161017
prefetch(TT.first_entry(key()));
10171018

1018-
++st->rule50;
10191019
st->pliesFromNull = 0;
10201020

10211021
sideToMove = ~sideToMove;

0 commit comments

Comments
 (0)