mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 02:57:11 +08:00
Inline pinned_pieces() and discovered_check_candidates()
No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -84,11 +84,11 @@ inline Bitboard bit_is_set(Bitboard b, Square s) {
|
||||
return b & SetMaskBB[s];
|
||||
}
|
||||
|
||||
inline void set_bit(Bitboard *b, Square s) {
|
||||
inline void set_bit(Bitboard* b, Square s) {
|
||||
*b |= SetMaskBB[s];
|
||||
}
|
||||
|
||||
inline void clear_bit(Bitboard *b, Square s) {
|
||||
inline void clear_bit(Bitboard* b, Square s) {
|
||||
*b &= ClearMaskBB[s];
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ inline Bitboard make_move_bb(Square from, Square to) {
|
||||
return SetMaskBB[from] | SetMaskBB[to];
|
||||
}
|
||||
|
||||
inline void do_move_bb(Bitboard *b, Bitboard move_bb) {
|
||||
inline void do_move_bb(Bitboard* b, Bitboard move_bb) {
|
||||
*b ^= move_bb;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user