From: Marco Costalba Date: Fri, 15 Apr 2011 15:41:45 +0000 (+0200) Subject: Better self-document LMR reduction() formula X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=a86057649364547066f65d088809ae490856587b;hp=786564068bb22c750c41649733d4aa6733accaec Better self-document LMR reduction() formula Suggested by Onno No functional change. Signed-off-by: Marco Costalba --- 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.