X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=4dd4d78954e1a01859c9dc9ff11dabf69f7f3571;hp=3319ee94798ea234dee492d3ebd338e033df127f;hb=c8589903777b6e0289640b43fae966ded442af48;hpb=d1f76ebcd8cc475d08b468efe4b467e014efef14 diff --git a/src/search.cpp b/src/search.cpp index 3319ee94..4dd4d789 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -18,7 +18,6 @@ along with this program. If not, see . */ -#include #include #include #include // For std::memset @@ -461,7 +460,7 @@ void Thread::search() { && !mainThread->stopOnPonderhit) { double fallingEval = (306 + 9 * (mainThread->previousScore - bestValue)) / 581.0; - fallingEval = std::max(0.5, std::min(1.5, fallingEval)); + fallingEval = clamp(fallingEval, 0.5, 1.5); // If the bestMove is stable over several iterations, reduce time accordingly timeReduction = lastBestMoveDepth + 10 * ONE_PLY < completedDepth ? 1.95 : 1.0;