mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 17:16:33 +08:00
Simplify tte use condition
No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
e654209211
commit
8d1c1074d5
@@ -609,8 +609,7 @@ namespace {
|
||||
|
||||
// Can ttValue be used as a better position evaluation?
|
||||
if (ttValue != VALUE_NONE)
|
||||
if ( ((tte->bound() & BOUND_LOWER) && ttValue > eval)
|
||||
|| ((tte->bound() & BOUND_UPPER) && ttValue < eval))
|
||||
if (tte->bound() & (ttValue > eval ? BOUND_LOWER : BOUND_UPPER))
|
||||
eval = ttValue;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user