From a86057649364547066f65d088809ae490856587b Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Fri, 15 Apr 2011 17:41:45 +0200 Subject: [PATCH 1/1] Better self-document LMR reduction() formula Suggested by Onno No functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index ff489c96..6a42cc50 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -216,7 +216,7 @@ namespace { int8_t ReductionMatrix[2][64][64]; // [pv][depth][moveNumber] template - inline Depth reduction(Depth d, int mn) { return (Depth) ReductionMatrix[PV][Min(d / 2, 63)][Min(mn, 63)]; } + inline Depth reduction(Depth d, int mn) { return (Depth) ReductionMatrix[PV][Min(d / ONE_PLY, 63)][Min(mn, 63)]; } // Easy move margin. An easy move candidate must be at least this much // better than the second best move. -- 2.39.2