summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-17 04:08:39 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-17 04:08:39 +0000
commit98e994340ad8990c5bf95a9736be1b41d7440f22 (patch)
tree50dbe2319b29cd3ab56d753710021c4a6dbdfe8f
parentf4a0465b69a7f21917559bd4e13ce6c121db4046 (diff)
Do not raise exception expect when in SVID mode.
-rw-r--r--sysdeps/libm-ieee754/w_atan2.c9
-rw-r--r--sysdeps/libm-ieee754/w_atan2f.c14
-rw-r--r--sysdeps/libm-ieee754/w_atan2l.c9
3 files changed, 14 insertions, 18 deletions
diff --git a/sysdeps/libm-ieee754/w_atan2.c b/sysdeps/libm-ieee754/w_atan2.c
index ec29d55eb9..801baa2347 100644
--- a/sysdeps/libm-ieee754/w_atan2.c
+++ b/sysdeps/libm-ieee754/w_atan2.c
@@ -34,11 +34,10 @@ static char rcsid[] = "$NetBSD: w_atan2.c,v 1.6 1995/05/10 20:48:39 jtc Exp $";
#else
double z;
z = __ieee754_atan2(y,x);
- if(_LIB_VERSION == _IEEE_||__isnan(x)||__isnan(y)) return z;
- if(x==0.0&&y==0.0) {
- return __kernel_standard(y,x,3); /* atan2(+-0,+-0) */
- } else
- return z;
+ if(_LIB_VERSION != _SVID_||__isnan(x)||__isnan(y)) return z;
+ if(x==0.0&&y==0.0)
+ return __kernel_standard(y,x,3); /* atan2(+-0,+-0) */
+ return z;
#endif
}
weak_alias (__atan2, atan2)
diff --git a/sysdeps/libm-ieee754/w_atan2f.c b/sysdeps/libm-ieee754/w_atan2f.c
index 4d67638572..09caa06f00 100644
--- a/sysdeps/libm-ieee754/w_atan2f.c
+++ b/sysdeps/libm-ieee754/w_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.
* ====================================================
*/
@@ -17,7 +17,7 @@
static char rcsid[] = "$NetBSD: w_atan2f.c,v 1.3 1995/05/10 20:48:42 jtc Exp $";
#endif
-/*
+/*
* wrapper atan2f(y,x)
*/
@@ -37,12 +37,10 @@ static char rcsid[] = "$NetBSD: w_atan2f.c,v 1.3 1995/05/10 20:48:42 jtc Exp $";
#else
float z;
z = __ieee754_atan2f(y,x);
- if(_LIB_VERSION == _IEEE_||__isnanf(x)||__isnanf(y)) return z;
- if(x==(float)0.0&&y==(float)0.0) {
- /* atan2f(+-0,+-0) */
- return (float)__kernel_standard((double)y,(double)x,103);
- } else
- return z;
+ if(_LIB_VERSION != _SVID_||__isnanf(x)||__isnanf(y)) return z;
+ if(x==0.0&&y==0.0)
+ return __kernel_standard(y,x,103); /* atan2(+-0,+-0) */
+ return z;
#endif
}
weak_alias (__atan2f, atan2f)
diff --git a/sysdeps/libm-ieee754/w_atan2l.c b/sysdeps/libm-ieee754/w_atan2l.c
index 9e6e56bbed..2897c8c5f9 100644
--- a/sysdeps/libm-ieee754/w_atan2l.c
+++ b/sysdeps/libm-ieee754/w_atan2l.c
@@ -38,11 +38,10 @@ static char rcsid[] = "$NetBSD: $";
#else
long double z;
z = __ieee754_atan2l(y,x);
- if(_LIB_VERSION == _IEEE_||__isnanl(x)||__isnanl(y)) return z;
- if(x==0.0&&y==0.0) {
- return __kernel_standard(y,x,203); /* atan2l(+-0,+-0) */
- } else
- return z;
+ if(_LIB_VERSION != _SVID_||__isnanl(x)||__isnanl(y)) return z;
+ if(x==0.0&&y==0.0)
+ return __kernel_standard(y,x,203); /* atan2(+-0,+-0) */
+ return z;
#endif
}
weak_alias (__atan2l, atan2l)