From: Marco Costalba Date: Thu, 29 Sep 2016 13:24:36 +0000 (+0200) Subject: Remove useless razoring condition X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=eccccba0ce4e2d627cbe2adb1bf4a692d595ca99 Remove useless razoring condition Condition is always true! For any value of the array index! Even an out of bound array, like razor_margin[120]!!!! No functional change. --- diff --git a/src/search.cpp b/src/search.cpp index 3dc17962..1d8139c4 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -728,8 +728,7 @@ namespace { && ttMove == MOVE_NONE && eval + razor_margin[depth / ONE_PLY] <= alpha) { - if ( depth <= ONE_PLY - && eval + razor_margin[3] <= alpha) + if (depth <= ONE_PLY) return qsearch(pos, ss, alpha, beta, DEPTH_ZERO); Value ralpha = alpha - razor_margin[depth / ONE_PLY];