mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 13:17:44 +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
@@ -1434,7 +1434,7 @@ split_point_start: // At split points actual search starts from here
|
||||
&& bit_is_set(squares_between(t1, ksq), f2))
|
||||
{
|
||||
Bitboard occ = pos.occupied_squares();
|
||||
clear_bit(&occ, f2);
|
||||
xor_bit(&occ, f2);
|
||||
if (bit_is_set(pos.attacks_from(p1, t1, occ), ksq))
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user