]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Use std::vector to implement HashTable
[stockfish] / src / position.cpp
index 12ef1a3092fc9befaa6baf6b889741f655c6bc0d..879ac442ff43ddf5bd47b653128a893287dc7336 100644 (file)
@@ -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);