mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 02:57:11 +08:00
Mark square_bb() as constexpr
closes https://github.com/official-stockfish/Stockfish/pull/4949 No functional change
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user