about summary refs log tree commit diff
path: root/src/math/acoshf.c
diff options
context:
space:
mode:
authornsz <nsz@port70.net>2012-03-13 20:24:23 +0100
committernsz <nsz@port70.net>2012-03-13 20:24:23 +0100
commit8d0a6f7a1c47b280647f292e6864b85b72c71f2e (patch)
tree949de14dac812cbd118fdb8fc8d9941790ab2397 /src/math/acoshf.c
parent9560b6b152efeb23cc4e570dbaea5ef333ac971f (diff)
downloadmusl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.tar.gz
musl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.tar.xz
musl-8d0a6f7a1c47b280647f292e6864b85b72c71f2e.zip
math cleanup: use 1.0f instead of (float)1.0
Diffstat (limited to 'src/math/acoshf.c')
-rw-r--r--src/math/acoshf.c4
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));
 	}
 }