X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=7a16597d200e9467cb98e642e23699b7acb878bc;hp=ef5c4fa304ab1beb366077a36720dab9782744d4;hb=8cfe27b76521f3c357b8d3542717aceaa5eee23b;hpb=f9518de974fdf1931dbead736364efce9537320b diff --git a/src/bitboard.h b/src/bitboard.h index ef5c4fa3..7a16597d 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -376,10 +376,7 @@ inline Square pop_lsb(Bitboard* b) { } -/// frontmost_sq() and backmost_sq() return the most/least advanced square in -/// the given bitboard relative to the given color. - +/// frontmost_sq() returns the most advanced square for the given color inline Square frontmost_sq(Color c, Bitboard b) { return c == WHITE ? msb(b) : lsb(b); } -inline Square backmost_sq(Color c, Bitboard b) { return c == WHITE ? lsb(b) : msb(b); } #endif // #ifndef BITBOARD_H_INCLUDED