Simplify quiet history update expression

This patch simplifies the quiet history update expression in search.cpp.

The change is behaviour‑identical and removes unnecessary complexity from
the update_quiet_histories call.

Passed STC (non‑regression):
https://tests.stockfishchess.org/tests/view/6a14367b818cacc1db0ac7c3
LLR: 2.96 (-2.94,2.94) <-1.75,0.25>
Total: 52224 W: 13338 L: 13135 D: 25751
Ptnml(0-2): 118, 6065, 13557, 6240, 132

Passed LTC (non‑regression):
https://tests.stockfishchess.org/tests/view/6a155046818cacc1db0ac94d
LLR: 2.96 (-2.94,2.94) <-1.75,0.25>
Total: 136812 W: 34689 L: 34586 D: 67537
Ptnml(0-2): 51, 14770, 38668, 14859, 58

Both STC and LTC passed. Patch rebased to latest master.

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

Bench: 2549662
This commit is contained in:
Adrian
2026-06-06 10:12:36 +02:00
committed by Joost VandeVondele
parent db11ca42d5
commit 73826352d4
2 changed files with 2 additions and 2 deletions
+1
View File
@@ -13,6 +13,7 @@ Hisayori Noda (nodchip)
87flowers 87flowers
Aditya (absimaldata) Aditya (absimaldata)
Adrian Petrescu (apetresc) Adrian Petrescu (apetresc)
Adrian (AdrianGHUB15)
Ahmed Kerimov (wcdbmv) Ahmed Kerimov (wcdbmv)
Ajith Chandy Jose (ajithcj) Ajith Chandy Jose (ajithcj)
Alain Savard (Rocky640) Alain Savard (Rocky640)
+1 -2
View File
@@ -822,8 +822,7 @@ Value Search::Worker::search(
{ {
// Bonus for a quiet ttMove that fails high // Bonus for a quiet ttMove that fails high
if (!ttCapture) if (!ttCapture)
update_quiet_histories(pos, ss, *this, ttData.move, update_quiet_histories(pos, ss, *this, ttData.move, std::min(114 * depth, 724));
std::min(114 * depth - 73, 797));
// Extra penalty for early quiet moves of the previous ply // Extra penalty for early quiet moves of the previous ply
if (prevSq != SQ_NONE && (ss - 1)->moveCount < 4 && !priorCapture) if (prevSq != SQ_NONE && (ss - 1)->moveCount < 4 && !priorCapture)