Skip to content

Commit

Permalink
Fix sometimes incorrect key for prefetches
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mstembera authored and snicolet committed Oct 25, 2021
1 parent 2c86ae1 commit 385deef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1013,9 +1013,9 @@ void Position::do_null_move(StateInfo& newSt) {
}

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

++st->rule50;
st->pliesFromNull = 0;

sideToMove = ~sideToMove;
Expand Down

0 comments on commit 385deef

Please sign in to comment.