From: Reuven Peleg Date: Mon, 15 Jul 2013 13:14:30 +0000 (+0300) Subject: Simplify a condition in refutes() X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=a6c5f60caaa834dcc755aafb464c12f7f5d52567;p=fairystockfish.git Simplify a condition in refutes() No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index c98a53d..f47e601 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1454,7 +1454,7 @@ moves_loop: // When in check and at SpNode search starts from here | (attacks_bb(m2to, occ) & pos.pieces(color_of(pc), QUEEN, BISHOP)); // Verify attackers are triggered by our move and not already existing - if (xray && (xray ^ (xray & pos.attacks_from(m2to)))) + if (xray && (xray & ~pos.attacks_from(m2to))) // Unlikely xray return true; }