Simpler formula for ss->cutoffCnt update

closes https://github.com/official-stockfish/Stockfish/pull/5548

No functional change
This commit is contained in:
FauziAkram
2024-08-28 09:35:21 +02:00
committed by Joost VandeVondele
parent 54def6f7eb
commit 451044202a
+1 -1
View File
@@ -1292,7 +1292,7 @@ moves_loop: // When in check, search starts here
if (value >= beta) if (value >= beta)
{ {
ss->cutoffCnt += 1 + !ttData.move - (extension >= 2); ss->cutoffCnt += !ttData.move + (extension < 2);
assert(value >= beta); // Fail high assert(value >= beta); // Fail high
break; break;
} }