X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=e95bf0d275996f0965efb36617c840408821d6f3;hp=1dc6f26d0ef8517040f6b61317e23ce9854c42e1;hb=1d18647e738951a7e94530fef231f4b4e13b1786;hpb=a518d5d3adf0709471be906fd03ee4744477a214 diff --git a/src/bitboard.h b/src/bitboard.h index 1dc6f26d..e95bf0d2 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -223,10 +223,10 @@ inline Bitboard squares_of_color(Square s) { } -/// squares_aligned() returns true if the squares s1, s2 and s3 are aligned +/// aligned() returns true if the squares s1, s2 and s3 are aligned /// either on a straight or on a diagonal line. -inline bool squares_aligned(Square s1, Square s2, Square s3) { +inline bool aligned(Square s1, Square s2, Square s3) { return LineBB[s1][s2] & s3; }