aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/libm-ieee754/e_atan2f.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754/e_atan2f.c')
-rw-r--r--sysdeps/libm-ieee754/e_atan2f.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sysdeps/libm-ieee754/e_atan2f.c b/sysdeps/libm-ieee754/e_atan2f.c
index 437975f79f..8b3398c0a3 100644
--- a/sysdeps/libm-ieee754/e_atan2f.c
+++ b/sysdeps/libm-ieee754/e_atan2f.c
@@ -8,7 +8,7 @@
*
* Developed at SunPro, a Sun Microsystems, Inc. business.
* Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
+ * software is freely granted, provided that this notice
* is preserved.
* ====================================================
*/
@@ -21,16 +21,16 @@ static char rcsid[] = "$NetBSD: e_atan2f.c,v 1.4 1995/05/10 20:44:53 jtc Exp $";
#include "math_private.h"
#ifdef __STDC__
-static const float
+static const float
#else
-static float
+static float
#endif
tiny = 1.0e-30,
zero = 0.0,
-pi_o_4 = 7.8539818525e-01, /* 0x3f490fdb */
-pi_o_2 = 1.5707963705e+00, /* 0x3fc90fdb */
-pi = 3.1415925026e+00, /* 0x40490fda */
-pi_lo = 1.5099578832e-07; /* 0x34222168 */
+pi_o_4 = 7.8539818525e-01, /* 0x3f490fdb */
+pi_o_2 = 1.5707963705e+00, /* 0x3fc90fdb */
+pi = 3.1415927410e+00, /* 0x40490fdb */
+pi_lo = -8.7422776573e-07; /* 0xb3bbbd2e */
#ifdef __STDC__
float __ieee754_atan2f(float y, float x)
@@ -38,7 +38,7 @@ pi_lo = 1.5099578832e-07; /* 0x34222168 */
float __ieee754_atan2f(y,x)
float y,x;
#endif
-{
+{
float z;
int32_t k,m,hx,hy,ix,iy;
@@ -55,7 +55,7 @@ pi_lo = 1.5099578832e-07; /* 0x34222168 */
/* when y = 0 */
if(iy==0) {
switch(m) {
- case 0:
+ case 0:
case 1: return y; /* atan(+-0,+anything)=+-0 */
case 2: return pi+tiny;/* atan(+0,-anything) = pi */
case 3: return -pi-tiny;/* atan(-0,-anything) =-pi */
@@ -63,7 +63,7 @@ pi_lo = 1.5099578832e-07; /* 0x34222168 */
}
/* when x = 0 */
if(ix==0) return (hy<0)? -pi_o_2-tiny: pi_o_2+tiny;
-
+
/* when x is INF */
if(ix==0x7f800000) {
if(iy==0x7f800000) {