mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Replace clear_bit() with xor_bit()
This allows to retire ClearMaskBB[] and use just one SquareBB[] array to set and clear a bit. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -944,7 +944,7 @@ namespace {
|
||||
// Check if (without even considering any obstacles) we're too far away or doubled
|
||||
if ( pliesToQueen[winnerSide] + 3 <= pliesToGo
|
||||
|| (squares_in_front_of(loserSide, s) & pos.pieces(PAWN, loserSide)))
|
||||
clear_bit(&candidates, s);
|
||||
xor_bit(&candidates, s);
|
||||
}
|
||||
|
||||
// If any candidate is already a passed pawn it _may_ promote in time. We give up.
|
||||
|
||||
Reference in New Issue
Block a user