diff options
| author | Scott Gasch <[email protected]> | 2026-09-20 10:20:16 -0700 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2026-09-20 10:20:16 -0700 |
| commit | 48a958fb6e14607a68067a09b4a4cb576bf6b742 (patch) | |
| tree | 8951c83088995df8c3e5efe328634478c27ba5b4 /src/hash.c | |
| parent | 8c0d66f13f08cb5e760d787a878260ad67d17c13 (diff) | |
INFINITY -> INFINITY_SCORE to not collide with math.h.
Diffstat (limited to 'src/hash.c')
| -rw-r--r-- | src/hash.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -472,7 +472,7 @@ Return value: // // It does not make sense to store hash positions that are worth - // at best ~INFINITY. Every position is and this is a waste of + // at best ~INFINITY_SCORE. Every position is and this is a waste of // hash space. Ignore these. // if (iValue >= +NMATE) return; @@ -510,8 +510,8 @@ Return value: if (iValue <= -NMATE) { // - // If this is an upper bound near -INFINITY - // (i.e. ~-INFINITY at best) convert it into -NMATE at + // If this is an upper bound near -INFINITY_SCORE + // (i.e. ~-INFINITY_SCORE at best) convert it into -NMATE at // best (at best mate in N). // pHash->iValue = -NMATE; @@ -597,8 +597,8 @@ Return value: if (iValue >= +NMATE) { #ifdef ADJUST_MATE_IN_N - ASSERT((iValue + (int)uPly) < +INFINITY); - ASSERT((iValue + (int)uPly) > -INFINITY); + ASSERT((iValue + (int)uPly) < +INFINITY_SCORE); + ASSERT((iValue + (int)uPly) > -INFINITY_SCORE); pHash->iValue = (signed short)(iValue + (int)uPly); #else pHash->bvFlags = g_cDirty | HASH_FLAG_LOWER; @@ -609,8 +609,8 @@ Return value: else if (iValue <= -NMATE) { #ifdef ADJUST_MATE_IN_N - ASSERT((iValue + (int)uPly) < +INFINITY); - ASSERT((iValue - (int)uPly) > -INFINITY); + ASSERT((iValue + (int)uPly) < +INFINITY_SCORE); + ASSERT((iValue - (int)uPly) > -INFINITY_SCORE); pHash->iValue = (signed short)(iValue - (int)uPly); #else pHash->bvFlags = g_cDirty | HASH_FLAG_UPPER; @@ -667,7 +667,7 @@ Return value: // // Do not bother to hash this node if it is telling us that the - // value of this position is worth at least ~-INFINITY. This is + // value of this position is worth at least ~-INFINITY_SCORE. This is // useless information and a waste of hash space. // if (iValue <= -NMATE) return; |
