]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Halve king eval margin
[stockfish] / src / search.cpp
index c98a53dac207e915bf1c691edbfca43ba73706f2..eae2ea279e7818bc4838135521aca9b2127faba0 100644 (file)
@@ -1454,7 +1454,7 @@ moves_loop: // When in check and at SpNode search starts from here
                        | (attacks_bb<BISHOP>(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<QUEEN>(m2to))))
+        if (unlikely(xray) && (xray & ~pos.attacks_from<QUEEN>(m2to)))
             return true;
     }