summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval.c')
-rwxr-xr-xsrc/eval.c44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/eval.c b/src/eval.c
index 99baf8a..cf9527b 100755
--- a/src/eval.c
+++ b/src/eval.c
@@ -5561,18 +5561,6 @@ Return value:
pos->uMinMobility[BLACK] = pos->uMinMobility[WHITE] = 100;
pos->cTrapped[BLACK] = pos->cTrapped[WHITE] = ILLEGAL_COOR;
-#ifdef EVAL_HASH
- //
- // Check the eval hash
- //
- iScoreForSideToMove = ProbeEvalHash(ctx, iAlpha, iBeta);
- if (iScoreForSideToMove != INVALID_SCORE)
- {
- INC(ctx->sCounters.tree.u64EvalHashHits);
- goto end;
- }
-#endif
-
pos->iScore[BLACK] =
(pos->uPawnMaterial[BLACK] + pos->uNonPawnMaterial[BLACK]);
pos->iScore[WHITE] =
@@ -5690,16 +5678,6 @@ Return value:
{
*piPositional = iAlphaMargin;
}
-#ifdef EVAL_HASH
- //
- // The true eval can't reach iAlpha; that's a fact about
- // the position (not this particular window), so remember
- // it as a proven upper bound for reuse by later probes.
- //
- StoreEvalHash(ctx, iScoreForSideToMove,
- (SCORE)(iScoreForSideToMove + iAlphaMargin),
- EVAL_HASH_UPPER);
-#endif
goto end;
}
else if (iScoreForSideToMove - iBetaMargin >= iBeta)
@@ -5709,11 +5687,6 @@ Return value:
{
*piPositional = iBetaMargin;
}
-#ifdef EVAL_HASH
- StoreEvalHash(ctx, iScoreForSideToMove,
- (SCORE)(iScoreForSideToMove - iBetaMargin),
- EVAL_HASH_LOWER);
-#endif
goto end;
}
}
@@ -6090,15 +6063,6 @@ Return value:
{
*piPositional = iAlphaMargin;
}
- if ((ULONG)iAlphaMargin > ctx->uPositional)
- {
- ctx->uPositional = (ULONG)iAlphaMargin;
- }
- else
- {
- ctx->uPositional -= (ctx->uPositional - (ULONG)iAlphaMargin) / 4;
- ctx->uPositional = MAXU(ctx->uPositional, VALUE_PAWN);
- }
g_Options.iLastEvalScore = iScoreForSideToMove;
#ifdef EVAL_TIME
@@ -6107,13 +6071,6 @@ Return value:
#endif
INC(ctx->sCounters.tree.u64FullEvals);
-#ifdef EVAL_HASH
- //
- // Store in eval hash.
- //
- StoreEvalHash(ctx, iScoreForSideToMove, 0, EVAL_HASH_EXACT);
-#endif
-
end:
ASSERT(IS_VALID_SCORE(iScoreForSideToMove));
ASSERT((iScoreForSideToMove > -NMATE) &&
@@ -6122,6 +6079,5 @@ Return value:
ASSERT(abs(ctx->sPlyInfo[ctx->uPly].iKingScore[WHITE]) < 700);
ASSERT(ctx->sPlyInfo[ctx->uPly].uMinMobility[BLACK] <= 100);
ASSERT(ctx->sPlyInfo[ctx->uPly].uMinMobility[WHITE] <= 100);
- ASSERT((ctx->uPositional < 2500) && (ctx->uPositional >= VALUE_PAWN));
return(iScoreForSideToMove);
}