about summary refs log tree commit diff
path: root/src/math/j0f.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/j0f.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/j0f.c')
-rw-r--r--src/math/j0f.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/math/j0f.c b/src/math/j0f.c
index 77a2d734..52cb0ab4 100644
--- a/src/math/j0f.c
+++ b/src/math/j0f.c
@@ -74,16 +74,16 @@ float j0f(float x)
 		if (huge+x > one) {
 			if (ix < 0x32000000)  /* |x| < 2**-27 */
 				return one;
-			return one - (float)0.25*x*x;
+			return one - 0.25f*x*x;
 		}
 	}
 	z = x*x;
 	r =  z*(R02+z*(R03+z*(R04+z*R05)));
 	s =  one+z*(S01+z*(S02+z*(S03+z*S04)));
 	if(ix < 0x3F800000) {   /* |x| < 1.00 */
-		return one + z*((float)-0.25+(r/s));
+		return one + z*(-0.25f + (r/s));
 	} else {
-		u = (float)0.5*x;
+		u = 0.5f*x;
 		return (one+u)*(one-u) + z*(r/s);
 	}
 }
@@ -343,5 +343,5 @@ static float qzerof(float x)
 	z = one/(x*x);
 	r = p[0]+z*(p[1]+z*(p[2]+z*(p[3]+z*(p[4]+z*p[5]))));
 	s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*(q[4]+z*q[5])))));
-	return (-(float).125 + r/s)/x;
+	return (-.125f + r/s)/x;
 }