mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 12:07:43 +00: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:
+1
-1
@@ -74,7 +74,7 @@ namespace {
|
||||
if (pos.is_chess960())
|
||||
{
|
||||
Bitboard occ = pos.occupied_squares();
|
||||
clear_bit(&occ, rfrom);
|
||||
xor_bit(&occ, rfrom);
|
||||
if (pos.attackers_to(kto, occ) & enemies)
|
||||
return mlist;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user