Selaa lähdekoodia

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

Ryan C. Gordon 6 vuotta sitten
vanhempi
commit
4cb84b8f4b
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/libm/e_exp.c

+ 1 - 1
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 */