]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Do not raise exception expect when in SVID mode.
authorUlrich Drepper <drepper@redhat.com>
Mon, 17 Mar 1997 04:08:39 +0000 (04:08 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 17 Mar 1997 04:08:39 +0000 (04:08 +0000)
sysdeps/libm-ieee754/w_atan2.c
sysdeps/libm-ieee754/w_atan2f.c
sysdeps/libm-ieee754/w_atan2l.c

index ec29d55eb91be847b51aa2a03f0ac934b8de7cff..801baa2347035bcb273574eb5f8dd0978c4ef3f2 100644 (file)
@@ -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)
index 4d676385724691bcf1c342eef0067091083dd67b..09caa06f00ca629eb959e8722ff9aaf4eccaa18c 100644 (file)
@@ -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)
index 9e6e56bbed59bc2454337b2ed33b933fe3a7e287..2897c8c5f939efa6355390afca82dcdb0f03bde8 100644 (file)
@@ -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)