Commit 4cb84b8f4bd447ba09f9d988a96b5f77ea25cfa7

Ryan C. Gordon 2018-08-08T12:36:54

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

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/libm/e_exp.c b/src/libm/e_exp.c
index 617a201..d8cd4a4 100644
--- a/src/libm/e_exp.c
+++ b/src/libm/e_exp.c
@@ -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 */