X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fsearch.cpp;h=eae2ea279e7818bc4838135521aca9b2127faba0;hb=4b3a0fdab03a7529ede42891963d3036712a0bd5;hp=c98a53dac207e915bf1c691edbfca43ba73706f2;hpb=4ede49cd850392f28bc9da9537c111d2c3f0b297;p=stockfish diff --git a/src/search.cpp b/src/search.cpp index c98a53da..eae2ea27 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 (unlikely(xray) && (xray & ~pos.attacks_from(m2to))) return true; }