Retire TTCluster and simplify TT

Also some renaming while there.

No functional change.
This commit is contained in:
Marco Costalba
2013-02-09 08:17:03 +01:00
parent 3f44be9baa
commit fe3352665b
3 changed files with 38 additions and 71 deletions

View File

@@ -594,8 +594,8 @@ namespace {
else if (tte)
{
// Never assume anything on values stored in TT
if ( (ss->staticEval = eval = tte->static_value()) == VALUE_NONE
||(ss->evalMargin = tte->static_value_margin()) == VALUE_NONE)
if ( (ss->staticEval = eval = tte->eval_value()) == VALUE_NONE
||(ss->evalMargin = tte->eval_margin()) == VALUE_NONE)
eval = ss->staticEval = evaluate(pos, ss->evalMargin);
// Can ttValue be used as a better position evaluation?
@@ -1164,8 +1164,8 @@ split_point_start: // At split points actual search starts from here
if (tte)
{
// Never assume anything on values stored in TT
if ( (ss->staticEval = bestValue = tte->static_value()) == VALUE_NONE
||(ss->evalMargin = tte->static_value_margin()) == VALUE_NONE)
if ( (ss->staticEval = bestValue = tte->eval_value()) == VALUE_NONE
||(ss->evalMargin = tte->eval_margin()) == VALUE_NONE)
ss->staticEval = bestValue = evaluate(pos, ss->evalMargin);
}
else