Merge commit '432995ad82119070afa0bf720eb65d800bcbf817' into cluster

This is the last commit before there are more conflicts.
This commit is contained in:
Steinar H. Gunderson
2025-12-24 13:57:03 +01:00
6 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -1135,7 +1135,7 @@ moves_loop: // When in check, search starts here
extension = -1;
}
// Recapture extensions (~0 Elo on STC, ~1 Elo on LTC)
// Extension for capturing the previous moved piece (~0 Elo on STC, ~1 Elo on LTC)
else if (PvNode && move == ttMove && move.to_sq() == prevSq
&& thisThread->captureHistory[movedPiece][move.to_sq()]
[type_of(pos.piece_on(move.to_sq()))]
@@ -1199,7 +1199,7 @@ moves_loop: // When in check, search starts here
{
// In general we want to cap the LMR depth search at newDepth, but when
// reduction is negative, we allow this move a limited search extension
// beyond the first move depth. This may lead to hidden multiple extensions.
// beyond the first move depth.
// To prevent problems when the max value is less than the min value,
// std::clamp has been replaced by a more robust implementation.
Depth d = std::max(1, std::min(newDepth - r, newDepth + 1));