diff options
| author | Rich Felker <dalias@aerifal.cx> | 2012-03-16 21:01:34 -0400 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2012-03-16 21:01:34 -0400 | 
| commit | 93a50a26cd0f9efc59cc83daae7b2d916b327ab1 (patch) | |
| tree | ada41a23c4b01f27d1d2cf8cd88948b061aa8f61 /src/math/expf.c | |
| parent | 2cbb24bba39ad3529315098b5619b6fec078eb82 (diff) | |
| parent | 40305f74bd70a575ce73260227ed3b64e0625b13 (diff) | |
| download | musl-93a50a26cd0f9efc59cc83daae7b2d916b327ab1.tar.gz | |
Merge remote branch 'nsz/master'
Diffstat (limited to 'src/math/expf.c')
| -rw-r--r-- | src/math/expf.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/math/expf.c b/src/math/expf.c index a0eaa7a7..8925a6f1 100644 --- a/src/math/expf.c +++ b/src/math/expf.c @@ -85,11 +85,11 @@ float expf(float x)  		SET_FLOAT_WORD(twopk, 0x3f800000+((k+100)<<23));  	c  = x - t*(P1+t*P2);  	if (k == 0) -		return one - ((x*c)/(c-(float)2.0)-x); -	y = one - ((lo-(x*c)/((float)2.0-c))-hi); +		return one - ((x*c)/(c - 2.0f) - x); +	y = one - ((lo - (x*c)/(2.0f - c)) - hi);  	if (k < -125)  		return y*twopk*twom100;  	if (k == 128) -		return y*2.0F*0x1p127F; +		return y*2.0f*0x1p127f;  	return y*twopk;  } | 
