]> git.sesse.net Git - stockfish/blobdiff - src/evaluate.cpp
Prefetch also material tables
[stockfish] / src / evaluate.cpp
index e9feba06fe42a31b3b48979a0844aff19664ff23..86b37e3b045a63ae92ebe1b962d132f770b55555 100644 (file)
@@ -269,16 +269,13 @@ namespace {
 }
 
 
-////
-//// Functions
-////
-
-
-/// Prefetches in pawn hash tables
+/// prefetchTables() is called in do_move() to prefetch pawn and material
+/// hash tables data that will be needed shortly after in evaluation.
 
-void prefetchPawn(Key key, int threadID) {
+void prefetchTables(Key pKey, Key mKey, int threadID) {
 
-    PawnTable[threadID]->prefetch(key);
+    PawnTable[threadID]->prefetch(pKey);
+    MaterialTable[threadID]->prefetch(mKey);
 }