mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 07:36:23 +08:00
Move pawn and material tables under Thread class
This change allows to remove some quite a bit of code and seems the natural thing to do. Introduced file thread.cpp to move away from search.cpp a lot of threads related stuff. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user