X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=87628c0ce7b483c5f4cf9e75732aa40917a9e117;hp=ba1b0072bce5079064b5f59cbe26328cb7b6dc03;hb=d19348221395a5939603bbd1364fda60e4ffd2ee;hpb=28b6a457c24d9202ba43a6d6703221250f0f8749 diff --git a/src/bitboard.h b/src/bitboard.h index ba1b0072..87628c0c 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -130,7 +130,6 @@ constexpr bool more_than_one(Bitboard b) { return b & (b - 1); } - /// rank_bb() and file_bb() return a bitboard representing all the squares on /// the given file or rank. @@ -153,7 +152,7 @@ inline Bitboard file_bb(Square s) { /// shift() moves a bitboard one step along direction D. Mainly for pawns -template +template constexpr Bitboard shift(Bitboard b) { return D == NORTH ? b << 8 : D == SOUTH ? b >> 8 : D == NORTH_EAST ? (b & ~FileHBB) << 9 : D == SOUTH_EAST ? (b & ~FileHBB) >> 7