Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
backout INFINITY change...of course Visual Studio doesn't have it.
  • Loading branch information
icculus committed Aug 8, 2018
1 parent 257071f commit 4cb84b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libm/e_exp.c
Expand Up @@ -117,7 +117,7 @@ double __ieee754_exp(double x) /* default IEEE double exp */
return x+x; /* NaN */
else return (xsb==0)? x:0.0; /* exp(+-inf)={inf,0} */
}
#if 0
#if 1
if(x > o_threshold) return huge*huge; /* overflow */
#else /* !!! FIXME: check this: "huge * huge" is a compiler warning, maybe they wanted +Inf? */
if(x > o_threshold) return INFINITY; /* overflow */
Expand Down

0 comments on commit 4cb84b8

Please sign in to comment.