X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=294025b5266fb9f76aab1181a4ef3583ee8edf90;hp=85852e5e5b8567557a75ac289025073a2df61ef3;hb=e72b93e44fb95af6b3669e23a8fcd7702ea09ec1;hpb=46a50cbf38bdfa5e48358585f4c98668507700ae diff --git a/src/bitboard.h b/src/bitboard.h index 85852e5e..294025b5 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -23,6 +23,13 @@ #include "types.h" +namespace Bitboards { + +extern void init(); +extern void print(Bitboard b); + +} + CACHE_LINE_ALIGNMENT extern Bitboard RMasks[64]; @@ -263,17 +270,4 @@ 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(); - #endif // !defined(BITBOARD_H_INCLUDED)