From 6849f0800e82845271ad5888600c141857e744ec Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 23 Jan 2011 10:52:51 +0100 Subject: [PATCH] Retire InitialDepth No functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index e98ea81d..8cdd7a21 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -233,11 +233,6 @@ namespace { template inline Depth reduction(Depth d, int mn) { return (Depth) ReductionMatrix[PV][Min(d / 2, 63)][Min(mn, 63)]; } - // Common adjustments - - // Search depth at iteration 1 - const Depth InitialDepth = ONE_PLY; - // Easy move margin. An easy move candidate must be at least this much // better than the second best move. const Value EasyMoveMargin = Value(0x200); @@ -656,7 +651,7 @@ namespace { cout << "info depth " << iteration << endl; Rml.bestMoveChanges = researchCountFL = researchCountFH = 0; - depth = (iteration - 2) * ONE_PLY + InitialDepth; + depth = (iteration - 1) * ONE_PLY; // Calculate dynamic aspiration window based on previous iterations if (MultiPV == 1 && iteration >= 6 && abs(bestValues[iteration - 1]) < VALUE_KNOWN_WIN) -- 2.39.2