1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-07-12 03:59:15 +00:00

Further simplification of TT replace strategy

No functional change
This commit is contained in:
Jean-Francois Romang 2014-03-27 18:38:19 +01:00 committed by Marco Costalba
parent f811a5693e
commit 4833887842

View file

@ -111,9 +111,9 @@ void TranspositionTable::store(const Key key, Value v, Bound b, Depth d, Move m,
} }
// Implement replace strategy // Implement replace strategy
if ( (replace->generation8 == generation) * 2 if ( ( tte->generation8 == generation || tte->bound() == BOUND_EXACT)
- (tte->generation8 == generation || tte->bound() == BOUND_EXACT) * 2 - (replace->generation8 == generation)
+ (tte->depth16 < replace->depth16) > 0) < (tte->depth16 < replace->depth16))
replace = tte; replace = tte;
} }