Mark square_bb() as constexpr

closes https://github.com/official-stockfish/Stockfish/pull/4949

No functional change
This commit is contained in:
FauziAkram
2023-12-31 03:43:19 +03:00
committed by Disservin
parent 1fe562fdf3
commit 4ff297a6df

View File

@@ -89,7 +89,7 @@ struct Magic {
extern Magic RookMagics[SQUARE_NB]; extern Magic RookMagics[SQUARE_NB];
extern Magic BishopMagics[SQUARE_NB]; extern Magic BishopMagics[SQUARE_NB];
inline Bitboard square_bb(Square s) { constexpr Bitboard square_bb(Square s) {
assert(is_ok(s)); assert(is_ok(s));
return (1ULL << s); return (1ULL << s);
} }