X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=86b37e3b045a63ae92ebe1b962d132f770b55555;hp=e9feba06fe42a31b3b48979a0844aff19664ff23;hb=6738b65be97af10e4b5b783dc8ad21ae0faf36a8;hpb=2f1935078da225c90f7887ed8c345cc7baebcfcc diff --git a/src/evaluate.cpp b/src/evaluate.cpp index e9feba06..86b37e3b 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -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); }