X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbitboard.h;h=244dc034c33d680611e861b469124a8b2e96d3cf;hb=3fe0d5c53389b3d548cf1fbbba3f6c978e9f02ae;hp=bbed91775072632e61bec6bfe4304d6ce1cbe415;hpb=6abd0bd9fbd8aff7dad653d33ab344d3f47f0042;p=stockfish diff --git a/src/bitboard.h b/src/bitboard.h index bbed9177..244dc034 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -186,16 +186,6 @@ inline Bitboard between_bb(Square s1, Square s2) { return BetweenBB[s1][s2]; } - -/// forward_ranks_bb() returns a bitboard representing the squares on the ranks in -/// front of the given one, from the point of view of the given color. For instance, -/// forward_ranks_bb(BLACK, SQ_D3) will return the 16 squares on ranks 1 and 2. - -constexpr Bitboard forward_ranks_bb(Color c, Square s) { - return c == WHITE ? ~Rank1BB << 8 * relative_rank(WHITE, s) - : ~Rank8BB >> 8 * relative_rank(BLACK, s); -} - /// aligned() returns true if the squares s1, s2 and s3 are aligned either on a /// straight or on a diagonal line.