X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=03df6d7802547e76f171a85b1369449493311217;hp=f71b54bc7d0fa6e22dc539b3b25f48d53c2ac666;hb=19540c9ee824abc156d5a12ab353c250a083da4b;hpb=cf0561d31a177454e1c16db21677da20348b0124 diff --git a/src/search.cpp b/src/search.cpp index f71b54bc..03df6d78 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1351,7 +1351,7 @@ split_point_start: // At split points actual search starts from here // Rule 1. Checks which give opponent's king at most one escape square are dangerous b = kingAtt & ~pos.pieces(them) & ~newAtt & ~(1ULL << to); - if (!(b && (b & (b - 1)))) + if (single_bit(b)) // Catches also !b return true; // Rule 2. Queen contact check is very dangerous