X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=6dd07d5407f85bc431328915c8c459e3a043d7f7;hp=85852e5e5b8567557a75ac289025073a2df61ef3;hb=10e64e05094e75d89baa4495fa867a8a64195bb7;hpb=76622342ec45a372b75bffdf81297861af78bbde 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();