mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 17:19:36 +00:00
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: cddde31eed
closes https://github.com/official-stockfish/Stockfish/pull/3759
No functional change
This commit is contained in:
parent
2c86ae196d
commit
385deefd80
1 changed files with 1 additions and 1 deletions
|
@ -1013,9 +1013,9 @@ void Position::do_null_move(StateInfo& newSt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
st->key ^= Zobrist::side;
|
st->key ^= Zobrist::side;
|
||||||
|
++st->rule50;
|
||||||
prefetch(TT.first_entry(key()));
|
prefetch(TT.first_entry(key()));
|
||||||
|
|
||||||
++st->rule50;
|
|
||||||
st->pliesFromNull = 0;
|
st->pliesFromNull = 0;
|
||||||
|
|
||||||
sideToMove = ~sideToMove;
|
sideToMove = ~sideToMove;
|
||||||
|
|
Loading…
Add table
Reference in a new issue