X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fposition.cpp;h=2172180cfb694783feddebd048e7546133475f98;hp=3f6400a80daeda5ae7f8af243726f138ff322a4b;hb=fecefbb99cb0147f37d6895765a315f34c935786;hpb=c9d7e99de682516c560009b550c41da9ae2008b8 diff --git a/src/position.cpp b/src/position.cpp index 3f6400a8..2172180c 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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);