X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fmovegen.cpp;h=cf65cd62889103c2b89cdd9c437b226ff05660fe;hp=c378b6b34ceb5d6f9b87b5d7bb2264028f34755d;hb=60c121f3b1ee7d5ced3435cc1718e4e6e6fd8383;hpb=42b48b08e81b55e385e55b3074b7c59d81809a45 diff --git a/src/movegen.cpp b/src/movegen.cpp index c378b6b3..cf65cd62 100644 --- a/src/movegen.cpp +++ b/src/movegen.cpp @@ -237,7 +237,7 @@ namespace { && !(PseudoAttacks[Pt][from] & target & ci->checkSq[Pt])) continue; - if (unlikely(ci->dcCandidates) && (ci->dcCandidates & from)) + if (ci->dcCandidates && (ci->dcCandidates & from)) continue; } @@ -256,7 +256,7 @@ namespace { template FORCE_INLINE ExtMove* generate_all(const Position& pos, ExtMove* moveList, Bitboard target, - const CheckInfo* ci = NULL) { + const CheckInfo* ci = nullptr) { const bool Checks = Type == QUIET_CHECKS;