From a9a6915e0839d3f3f54659c86f15868a7db0e386 Mon Sep 17 00:00:00 2001 From: cj5716 <125858804+cj5716@users.noreply.github.com> Date: Mon, 5 Jun 2023 07:59:56 +0800 Subject: [PATCH] Simplify multiplier for improvement This simplifies a `* 99 / 1300` term into just `/ 13`. Passed non-regression STC: LLR: 2.92 (-2.94,2.94) <-1.75,0.25> Total: 58816 W: 15727 L: 15540 D: 27549 Ptnml(0-2): 149, 6370, 16203, 6517, 169 https://tests.stockfishchess.org/tests/view/647d25e4726f6b400e408165 Passed non-regression LTC: LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 154386 W: 41749 L: 41669 D: 70968 Ptnml(0-2): 94, 14992, 46956, 15042, 109 https://tests.stockfishchess.org/tests/view/647d9b3c726f6b400e408b2a closes https://github.com/official-stockfish/Stockfish/pull/4608 Bench: 2511327 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index c7b00766..593fdc72 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -779,7 +779,7 @@ namespace { && (ss-1)->statScore < 17329 && eval >= beta && eval >= ss->staticEval - && ss->staticEval >= beta - 21 * depth - improvement * 99 / 1300 + 258 + && ss->staticEval >= beta - 21 * depth - improvement / 13 + 258 && !excludedMove && pos.non_pawn_material(us) && (ss->ply >= thisThread->nmpMinPly)) -- 2.39.2