backout INFINITY change...of course Visual Studio doesn't have it.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 08 Aug 2018 12:36:54 -0400
changeset 120869beb08c32d94
parent 12085 61f6f27a9751
child 12087 cb546477e34f
backout INFINITY change...of course Visual Studio doesn't have it.
src/libm/e_exp.c
     1.1 --- a/src/libm/e_exp.c	Wed Aug 08 12:19:01 2018 -0400
     1.2 +++ b/src/libm/e_exp.c	Wed Aug 08 12:36:54 2018 -0400
     1.3 @@ -117,7 +117,7 @@
     1.4  		     return x+x; 		/* NaN */
     1.5  		else return (xsb==0)? x:0.0;	/* exp(+-inf)={inf,0} */
     1.6  	    }
     1.7 -		#if 0
     1.8 +		#if 1
     1.9  		if(x > o_threshold) return huge*huge; /* overflow */
    1.10  		#else  /* !!! FIXME: check this: "huge * huge" is a compiler warning, maybe they wanted +Inf? */
    1.11  		if(x > o_threshold) return INFINITY; /* overflow */