mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +08:00
Introduce namespace Pawns
And retire old struct PawnTable along the same lines of previous patch. No functional change.
This commit is contained in:
@@ -37,7 +37,7 @@ namespace {
|
||||
|
||||
// Pointers to material and pawn hash table entries
|
||||
Material::Entry* mi;
|
||||
PawnEntry* pi;
|
||||
Pawns::Entry* pi;
|
||||
|
||||
// attackedBy[color][piece type] is a bitboard representing all squares
|
||||
// attacked by a given color and piece type, attackedBy[color][0] contains
|
||||
@@ -405,7 +405,7 @@ Value do_evaluate(const Position& pos, Value& margin) {
|
||||
}
|
||||
|
||||
// Probe the pawn hash table
|
||||
ei.pi = pos.this_thread()->pawnTable.probe(pos);
|
||||
ei.pi = Pawns::probe(pos, th->pawnsTable);
|
||||
score += ei.pi->pawns_value();
|
||||
|
||||
// Initialize attack and king safety bitboards
|
||||
|
||||
Reference in New Issue
Block a user