X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fpawns.h;h=df38d55cb99c66e542c5af24498526dde6aa8a11;hp=55bd944df6609a84cbf6e55484106092e3ec5cbd;hb=6fa6da3ee13d2b7bdbec3cd24ff8ca43233c74fb;hpb=42b48b08e81b55e385e55b3074b7c59d81809a45 diff --git a/src/pawns.h b/src/pawns.h index 55bd944d..df38d55c 100644 --- a/src/pawns.h +++ b/src/pawns.h @@ -35,6 +35,7 @@ struct Entry { Score pawns_score() const { return score; } Bitboard pawn_attacks(Color c) const { return pawnAttacks[c]; } Bitboard passed_pawns(Color c) const { return passedPawns[c]; } + int pawn_span(Color c) const { return pawnSpan[c]; } int semiopen_file(Color c, File f) const { return semiopenFiles[c] & (1 << f); @@ -44,10 +45,6 @@ struct Entry { return semiopenFiles[c] & (leftSide ? (1 << f) - 1 : ~((1 << (f + 1)) - 1)); } - int pawn_span(Color c) const { - return pawnSpan[c]; - } - int pawns_on_same_color_squares(Color c, Square s) const { return pawnsOnSquares[c][!!(DarkSquares & s)]; }