mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-23 18:46:59 +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 BishopMagics[SQUARE_NB];
|
||||
|
||||
inline Bitboard square_bb(Square s) {
|
||||
constexpr Bitboard square_bb(Square s) {
|
||||
assert(is_ok(s));
|
||||
return (1ULL << s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user