Non-functional simplifications

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

No functional change

Co-authored-by: Daniel Monroe <github.com@danielmonroe.net>
This commit is contained in:
Shawn Xu
2025-08-30 15:09:47 +02:00
committed by Joost VandeVondele
co-authored by Daniel Monroe
parent a289ee389a
commit 7d213afd37
+3 -6
View File
@@ -929,8 +929,6 @@ Value Search::Worker::search(
assert(pos.capture_stage(move)); assert(pos.capture_stage(move));
movedPiece = pos.moved_piece(move);
do_move(pos, move, st, ss); do_move(pos, move, st, ss);
// Perform a preliminary qsearch to verify that the move holds // Perform a preliminary qsearch to verify that the move holds
@@ -1079,9 +1077,8 @@ moves_loop: // When in check, search starts here
lmrDepth += history / 3220; lmrDepth += history / 3220;
Value baseFutility = (bestMove ? 47 : 218); Value futilityValue = ss->staticEval + 47 + 171 * !bestMove + 134 * lmrDepth
Value futilityValue = + 90 * (ss->staticEval > alpha);
ss->staticEval + baseFutility + 134 * lmrDepth + 90 * (ss->staticEval > alpha);
// Futility pruning: parent node // Futility pruning: parent node
// (*Scaler): Generally, more frequent futility pruning // (*Scaler): Generally, more frequent futility pruning
@@ -1353,7 +1350,7 @@ moves_loop: // When in check, search starts here
if (value >= beta) if (value >= beta)
{ {
// (* Scaler) Especially if they make cutoffCnt increment more often. // (*Scaler) Especially if they make cutoffCnt increment more often.
ss->cutoffCnt += (extension < 2) || PvNode; ss->cutoffCnt += (extension < 2) || PvNode;
assert(value >= beta); // Fail high assert(value >= beta); // Fail high
break; break;