X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fbitboard.h;h=87628c0ce7b483c5f4cf9e75732aa40917a9e117;hp=05f65931cb3e20bfbc810e9272f51816c9f6109e;hb=d19348221395a5939603bbd1364fda60e4ffd2ee;hpb=2acda1fde3e1542a0b1bfc5a0885559e6daf142a diff --git a/src/bitboard.h b/src/bitboard.h index 05f65931..87628c0c 100644 --- a/src/bitboard.h +++ b/src/bitboard.h @@ -152,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