X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=879ac442ff43ddf5bd47b653128a893287dc7336;hp=12ef1a3092fc9befaa6baf6b889741f655c6bc0d;hb=32c504076f5a1d5c84f88c2d30a11c25ea2e5a6e;hpb=7bc36887144bc6a682e54a91044641f913176449 diff --git a/src/position.cpp b/src/position.cpp index 12ef1a30..879ac442 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -903,8 +903,8 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI } // Prefetch pawn and material hash tables - Threads[threadID].pawnTable.prefetch(st->pawnKey); - Threads[threadID].materialTable.prefetch(st->materialKey); + prefetch((char*)Threads[threadID].pawnTable.entries[st->pawnKey]); + prefetch((char*)Threads[threadID].materialTable.entries[st->materialKey]); // Update incremental scores st->value += pst_delta(piece, from, to);