X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=a133c65bef28b0ef3e507a8bf7f93d4990b7e23e;hp=07b0f9ba1c1540ca891b67f9f867bc6698581986;hb=a4c11b71acc4aeab032128d4ba9d0d4ccd51aa20;hpb=b2fadf32aa57012f2140bc32d5f2433efae3e730 diff --git a/src/bitboard.h b/src/bitboard.h index 07b0f9ba..a133c65b 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -135,20 +135,15 @@ inline Bitboard adjacent_files_bb(File f) { } -/// in_front_bb() takes a color and a rank or square as input, and returns a -/// bitboard representing all the squares on all ranks in front of the rank -/// (or square), from the given color's point of view. For instance, -/// in_front_bb(WHITE, RANK_5) will give all squares on ranks 6, 7 and 8, while -/// in_front_bb(BLACK, SQ_D3) will give all squares on ranks 1 and 2. +/// in_front_bb() takes a color and a rank as input, and returns a bitboard +/// representing all the squares on all ranks in front of the rank, from the +/// given color's point of view. For instance, in_front_bb(BLACK, RANK_3) will +/// give all squares on ranks 1 and 2. inline Bitboard in_front_bb(Color c, Rank r) { return InFrontBB[c][r]; } -inline Bitboard in_front_bb(Color c, Square s) { - return InFrontBB[c][rank_of(s)]; -} - /// between_bb returns a bitboard representing all squares between two squares. /// For instance, between_bb(SQ_C4, SQ_F7) returns a bitboard with the bits for