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/acoshf.c | |
parent | 2cbb24bba39ad3529315098b5619b6fec078eb82 (diff) | |
parent | 40305f74bd70a575ce73260227ed3b64e0625b13 (diff) | |
download | musl-93a50a26cd0f9efc59cc83daae7b2d916b327ab1.tar.gz musl-93a50a26cd0f9efc59cc83daae7b2d916b327ab1.tar.bz2 musl-93a50a26cd0f9efc59cc83daae7b2d916b327ab1.tar.xz musl-93a50a26cd0f9efc59cc83daae7b2d916b327ab1.zip |
Merge remote branch 'nsz/master'
Diffstat (limited to 'src/math/acoshf.c')
-rw-r--r-- | src/math/acoshf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/math/acoshf.c b/src/math/acoshf.c index 30a3a943..57ce5cb8 100644 --- a/src/math/acoshf.c +++ b/src/math/acoshf.c @@ -35,9 +35,9 @@ float acoshf(float x) return 0.0; /* acosh(1) = 0 */ } else if (hx > 0x40000000) { /* 2**28 > x > 2 */ t = x*x; - return logf((float)2.0*x - one/(x+sqrtf(t-one))); + return logf(2.0f*x - one/(x+sqrtf(t-one))); } else { /* 1 < x < 2 */ t = x-one; - return log1pf(t + sqrtf((float)2.0*t+t*t)); + return log1pf(t + sqrtf(2.0f*t+t*t)); } } |