X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fevaluate.cpp;h=4765094a2c4c237d95afee9459e743bc60cd4bcc;hp=f27c04ec834ae4ef3b870b6a56739382b556ad2f;hb=231f62baf7b6d9cee18bf7e85bed0fc9b78eed73;hpb=52bbf372bb4956595e730f4dba05ee6b78305ad0 diff --git a/src/evaluate.cpp b/src/evaluate.cpp index f27c04ec..4765094a 100644 --- a/src/evaluate.cpp +++ b/src/evaluate.cpp @@ -36,7 +36,7 @@ namespace { struct EvalInfo { // Pointers to material and pawn hash table entries - MaterialEntry* mi; + Material::Entry* mi; PawnEntry* pi; // attackedBy[color][piece type] is a bitboard representing all squares @@ -367,7 +367,8 @@ Value do_evaluate(const Position& pos, Value& margin) { Score score, mobilityWhite, mobilityBlack; Key key = pos.key(); - Eval::Entry* e = pos.this_thread()->evalTable[key]; + Thread* th = pos.this_thread(); + Eval::Entry* e = th->evalTable[key]; // If e->key matches the position's hash key, it means that we have analysed // this node before, and we can simply return the information we found the last @@ -391,7 +392,7 @@ Value do_evaluate(const Position& pos, Value& margin) { score = pos.psq_score() + (pos.side_to_move() == WHITE ? Tempo : -Tempo); // Probe the material hash table - ei.mi = pos.this_thread()->materialTable.probe(pos); + ei.mi = Material::probe(pos, th->materialTable, th->endgames); score += ei.mi->material_value(); // If we have a specialized evaluation function for the current material