mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 09:06:45 +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;
|
return true;
|
||||||
|
|
||||||
// Discovery check ?
|
// 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
|
// For pawn and king moves we need to verify also direction
|
||||||
if ( (pt != PAWN && pt != KING)
|
if ( (pt != PAWN && pt != KING)
|
||||||
|
|||||||
Reference in New Issue
Block a user