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/atan2f.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/atan2f.c')
-rw-r--r-- | src/math/atan2f.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/math/atan2f.c b/src/math/atan2f.c index 4d78840b..b6a7f92d 100644 --- a/src/math/atan2f.c +++ b/src/math/atan2f.c @@ -58,8 +58,8 @@ float atan2f(float y, float x) switch (m) { case 0: return pi_o_4+tiny; /* atan(+INF,+INF) */ case 1: return -pi_o_4-tiny; /* atan(-INF,+INF) */ - case 2: return (float)3.0*pi_o_4+tiny; /*atan(+INF,-INF)*/ - case 3: return (float)-3.0*pi_o_4-tiny; /*atan(-INF,-INF)*/ + case 2: return 3.0f*pi_o_4+tiny; /*atan(+INF,-INF)*/ + case 3: return -3.0f*pi_o_4-tiny; /*atan(-INF,-INF)*/ } } else { switch (m) { @@ -77,7 +77,7 @@ float atan2f(float y, float x) /* compute y/x */ k = (iy-ix)>>23; if (k > 26) { /* |y/x| > 2**26 */ - z = pi_o_2+(float)0.5*pi_lo; + z = pi_o_2 + 0.5f*pi_lo; m &= 1; } else if (k < -26 && hx < 0) /* 0 > |y|/x > -2**-26 */ z = 0.0; |