mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Mark square_bb() as constexpr
closes https://github.com/official-stockfish/Stockfish/pull/4949 No functional change
This commit is contained in:
parent
1fe562fdf3
commit
4ff297a6df
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue