mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-17 07:36:23 +08:00
Retire pieces_of_color_and_type()
It is used mainly in a bunch of inline oneliners just below its definition. So substitute it with the explicit definition and avoid information hiding. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -832,7 +832,7 @@ namespace {
|
||||
MoveStack* generate_piece_checks(const Position& pos, MoveStack* mlist, Color us,
|
||||
Bitboard dc, Square ksq) {
|
||||
|
||||
Bitboard target = pos.pieces_of_color_and_type(us, Piece);
|
||||
Bitboard target = pos.pieces_of_color(us) & pos.pieces_of_type(Piece);
|
||||
|
||||
// Discovered checks
|
||||
Bitboard b = target & dc;
|
||||
|
||||
Reference in New Issue
Block a user