mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-19 08:36:33 +08:00
Annotate an unlikely condition
No functional change.
This commit is contained in:
@@ -652,7 +652,7 @@ bool Position::move_gives_check(Move m, const CheckInfo& ci) const {
|
||||
return true;
|
||||
|
||||
// Discovery check ?
|
||||
if (ci.dcCandidates && (ci.dcCandidates & from))
|
||||
if (unlikely(ci.dcCandidates) && (ci.dcCandidates & from))
|
||||
{
|
||||
// For pawn and king moves we need to verify also direction
|
||||
if ( (pt != PAWN && pt != KING)
|
||||
|
||||
Reference in New Issue
Block a user