Hide global visibility when not needed

Also move PieceValue definition in psqt.cpp,
where it is initialized.

Fix a warning in popcount16() with Intel compiler

No functional change.
This commit is contained in:
Marco Costalba
2016-04-07 08:55:38 +02:00
parent bd04f9a0f1
commit d30994ecd5
5 changed files with 25 additions and 21 deletions

View File

@@ -392,8 +392,8 @@ namespace {
| ei.attackedBy[Us][QUEEN]);
// ... and those which are not defended at all in the larger king ring
b = ei.attackedBy[Them][ALL_PIECES] & ~ei.attackedBy[Us][ALL_PIECES]
& ei.kingRing[Us] & ~pos.pieces(Them);
b = ei.attackedBy[Them][ALL_PIECES] & ~ei.attackedBy[Us][ALL_PIECES]
& ei.kingRing[Us] & ~pos.pieces(Them);
// Initialize the 'attackUnits' variable, which is used later on as an
// index into the KingDanger[] array. The initial value is based on the