Fix pawn entry prefetch

No functional change

Closes #1026
This commit is contained in:
mstembera
2017-03-14 20:56:26 -07:00
committed by Joona Kiiski
parent c3d2e6aba9
commit d01b66ae8f
3 changed files with 8 additions and 1 deletions

View File

@@ -827,7 +827,7 @@ void Position::do_move(Move m, StateInfo& newSt, bool givesCheck) {
// Update pawn hash key and prefetch access to pawnsTable
st->pawnKey ^= Zobrist::psq[pc][from] ^ Zobrist::psq[pc][to];
prefetch(thisThread->pawnsTable[st->pawnKey]);
prefetch2(thisThread->pawnsTable[st->pawnKey]);
// Reset rule 50 draw counter
st->rule50 = 0;