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/j1f.c | |
parent | 2cbb24bba39ad3529315098b5619b6fec078eb82 (diff) | |
parent | 40305f74bd70a575ce73260227ed3b64e0625b13 (diff) | |
download | musl-93a50a26cd0f9efc59cc83daae7b2d916b327ab1.tar.gz musl-93a50a26cd0f9efc59cc83daae7b2d916b327ab1.tar.xz musl-93a50a26cd0f9efc59cc83daae7b2d916b327ab1.zip |
Merge remote branch 'nsz/master'
Diffstat (limited to 'src/math/j1f.c')
-rw-r--r-- | src/math/j1f.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/j1f.c b/src/math/j1f.c index 0323ec78..2d617b67 100644 --- a/src/math/j1f.c +++ b/src/math/j1f.c @@ -75,13 +75,13 @@ float j1f(float x) if (ix < 0x32000000) { /* |x| < 2**-27 */ /* raise inexact if x!=0 */ if (huge+x > one) - return (float)0.5*x; + return 0.5f*x; } z = x*x; r = z*(r00+z*(r01+z*(r02+z*r03))); s = one+z*(s01+z*(s02+z*(s03+z*(s04+z*s05)))); r *= x; - return x*(float)0.5 + r/s; + return 0.5f*x + r/s; } static const float U0[5] = { @@ -338,5 +338,5 @@ static float qonef(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).375 + r/s)/x; + return (.375f + r/s)/x; } |