X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.h;fp=src%2Fpawns.h;h=96ed4149216fc24527e920d86c4e0ed5ab477122;hp=5f5411f613a5e5cc6f9644315cb89b9595fbbe5e;hb=76777b663a5f5a2dcfaafa19c15d02d11c401bdf;hpb=eb07775583c39893bc6eb65a40b5f62a7799deee diff --git a/src/pawns.h b/src/pawns.h index 5f5411f6..96ed4149 100644 --- a/src/pawns.h +++ b/src/pawns.h @@ -38,7 +38,7 @@ struct Entry { Bitboard passed_pawns(Color c) const { return passedPawns[c]; } Bitboard pawn_attacks_span(Color c) const { return pawnAttacksSpan[c]; } int weak_unopposed(Color c) const { return weakUnopposed[c]; } - int passed_count() const { return passedCount; } + int passed_count() const { return popcount(passedPawns[WHITE] | passedPawns[BLACK]); }; int pawns_on_same_color_squares(Color c, Square s) const { return pawnsOnSquares[c][bool(DarkSquares & s)]; @@ -66,7 +66,6 @@ struct Entry { int weakUnopposed[COLOR_NB]; int castlingRights[COLOR_NB]; int pawnsOnSquares[COLOR_NB][COLOR_NB]; // [color][light/dark squares] - int passedCount; }; typedef HashTable Table;