backout INFINITY change...of course Visual Studio doesn't have it.

This commit is contained in:
Ryan C. Gordon 2018-08-08 12:36:54 -04:00
parent 257071fc20
commit 4cb84b8f4b
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ double __ieee754_exp(double x) /* default IEEE double exp */
return x+x; /* NaN */ return x+x; /* NaN */
else return (xsb==0)? x:0.0; /* exp(+-inf)={inf,0} */ else return (xsb==0)? x:0.0; /* exp(+-inf)={inf,0} */
} }
#if 0 #if 1
if(x > o_threshold) return huge*huge; /* overflow */ if(x > o_threshold) return huge*huge; /* overflow */
#else /* !!! FIXME: check this: "huge * huge" is a compiler warning, maybe they wanted +Inf? */ #else /* !!! FIXME: check this: "huge * huge" is a compiler warning, maybe they wanted +Inf? */
if(x > o_threshold) return INFINITY; /* overflow */ if(x > o_threshold) return INFINITY; /* overflow */