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:
Marco Costalba
2012-01-29 09:11:03 +01:00
parent b76c04c097
commit 875a8079bc
8 changed files with 49 additions and 61 deletions
+1 -1
View File
@@ -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;
}