From 4833887842f3e43153306799ecc8f8a3d181f3b0 Mon Sep 17 00:00:00 2001 From: Jean-Francois Romang Date: Thu, 27 Mar 2014 18:38:19 +0100 Subject: [PATCH] Further simplification of TT replace strategy No functional change --- src/tt.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tt.cpp b/src/tt.cpp index d887844c..efaf9928 100644 --- a/src/tt.cpp +++ b/src/tt.cpp @@ -111,9 +111,9 @@ void TranspositionTable::store(const Key key, Value v, Bound b, Depth d, Move m, } // Implement replace strategy - if ( (replace->generation8 == generation) * 2 - - (tte->generation8 == generation || tte->bound() == BOUND_EXACT) * 2 - + (tte->depth16 < replace->depth16) > 0) + if ( ( tte->generation8 == generation || tte->bound() == BOUND_EXACT) + - (replace->generation8 == generation) + < (tte->depth16 < replace->depth16)) replace = tte; } -- 2.39.2