From da63060ea303bf18bd828114901c791d9061a944 Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Wed, 27 Aug 2025 11:03:10 -0400 Subject: [PATCH] Simplify sign term in quiet histories Simplify sign term in quiet histories Passed simplification STC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 497824 W: 129130 L: 129418 D: 239276 Ptnml(0-2): 1546, 59040, 128008, 58792, 1526 https://tests.stockfishchess.org/tests/view/68a2a9c1b6fb3300203bc3ed Passed simplification LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 70830 W: 18185 L: 18016 D: 34629 Ptnml(0-2): 36, 7658, 19861, 7821, 39 https://tests.stockfishchess.org/tests/view/68af36c96217b8721dca98d9 closes https://github.com/official-stockfish/Stockfish/pull/6282 Bench: 2393762 --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index d2afc480b..70124c589 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1869,8 +1869,7 @@ void update_quiet_histories( if (ss->ply < LOW_PLY_HISTORY_SIZE) workerThread.lowPlyHistory[ss->ply][move.from_to()] << (bonus * 741 / 1024) + 38; - update_continuation_histories(ss, pos.moved_piece(move), move.to_sq(), - bonus * (bonus > 0 ? 995 : 915) / 1024); + update_continuation_histories(ss, pos.moved_piece(move), move.to_sq(), bonus * 955 / 1024); int pIndex = pawn_history_index(pos); workerThread.pawnHistory[pIndex][pos.moved_piece(move)][move.to_sq()]