Introduce namespace Pawns

And retire old struct PawnTable along the same lines
of previous patch.

No functional change.
This commit is contained in:
Marco Costalba
2012-12-22 11:21:06 +01:00
parent 231f62baf7
commit 158014b39d
5 changed files with 136 additions and 178 deletions

View File

@@ -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