X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fbitboard.h;h=6dd07d5407f85bc431328915c8c459e3a043d7f7;hb=b0b9bb3462d215f33c9f33323e64dc115746c4e0;hp=85852e5e5b8567557a75ac289025073a2df61ef3;hpb=46a50cbf38bdfa5e48358585f4c98668507700ae;p=stockfish diff --git a/src/bitboard.h b/src/bitboard.h index 85852e5e..6dd07d54 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -263,16 +263,6 @@ extern Square pop_1st_bit(Bitboard* b); #endif -// relative_rank() returns the relative rank of the closest bit set on the Bitboard. -// Only to be used with bitboards that contain a single file. - -template -inline Rank relative_rank(Bitboard b) { - Square s = Us == WHITE ? first_1(b) - : ~last_1(b); - return rank_of(s); -} - extern void print_bitboard(Bitboard b); extern void bitboards_init();