]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Better annotate unlikely conditions
[stockfish] / src / search.cpp
index f47e601bfaa9651db0cfe55fe40ab20ad7352b96..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 & ~pos.attacks_from<QUEEN>(m2to))) // Unlikely xray
+        if (unlikely(xray) && (xray & ~pos.attacks_from<QUEEN>(m2to)))
             return true;
     }