]> git.sesse.net Git - stockfish/blobdiff - src/position.cpp
Move pawn and material tables under Thread class
[stockfish] / src / position.cpp
index 3f6400a80daeda5ae7f8af243726f138ff322a4b..2172180cfb694783feddebd048e7546133475f98 100644 (file)
@@ -29,6 +29,7 @@
 #include "position.h"
 #include "psqtab.h"
 #include "rkiss.h"
+#include "thread.h"
 #include "tt.h"
 #include "ucioption.h"
 
@@ -1047,7 +1048,8 @@ void Position::do_move(Move m, StateInfo& newSt, const CheckInfo& ci, bool moveI
   }
 
   // Prefetch pawn and material hash tables
-  prefetchTables(st->pawnKey, st->materialKey, threadID);
+  ThreadsMgr[threadID].pawnTable.prefetch(st->pawnKey);
+  ThreadsMgr[threadID].materialTable.prefetch(st->materialKey);
 
   // Update incremental scores
   st->value += pst_delta(piece, from, to);