}
inline Bitboard rank_bb(Square s) {
- return RankBB[square_rank(s)];
+ return RankBB[rank_of(s)];
}
inline Bitboard file_bb(File f) {
}
inline Bitboard file_bb(Square s) {
- return FileBB[square_file(s)];
+ return FileBB[file_of(s)];
}
}
inline Bitboard neighboring_files_bb(Square s) {
- return NeighboringFilesBB[square_file(s)];
+ return NeighboringFilesBB[file_of(s)];
}
}
inline Bitboard this_and_neighboring_files_bb(Square s) {
- return ThisAndNeighboringFilesBB[square_file(s)];
+ return ThisAndNeighboringFilesBB[file_of(s)];
}
}
inline Bitboard in_front_bb(Color c, Square s) {
- return InFrontBB[c][square_rank(s)];
+ return InFrontBB[c][rank_of(s)];
}
inline bool squares_aligned(Square s1, Square s2, Square s3) {
return (BetweenBB[s1][s2] | BetweenBB[s1][s3] | BetweenBB[s2][s3])
- & ((1ULL << s1) | (1ULL << s2) | (1ULL << s3));
+ & ( SetMaskBB[s1] | SetMaskBB[s2] | SetMaskBB[s3]);
}