]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define __cabs_complex locally and switch to ISO C form.
authorUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:44:23 +0000 (23:44 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 19 Nov 1997 23:44:23 +0000 (23:44 +0000)
sysdeps/libm-ieee754/w_cabs.c
sysdeps/libm-ieee754/w_cabsf.c
sysdeps/libm-ieee754/w_cabsl.c

index bf62f22be35bdbf121845484fcd24e2e6f5bd017..5313cba46663e6f291f2130746d8800419b84581 100644 (file)
@@ -7,9 +7,13 @@
 
 #include <math.h>
 
+struct __cabs_complex
+{
+  double x, y;
+};
+
 double
-__cabs(z)
-       struct __cabs_complex z;
+__cabs (struct __cabs_complex z)
 {
        return __hypot(z.x, z.y);
 }
@@ -17,8 +21,7 @@ weak_alias (__cabs, cabs)
 
 #ifdef NO_LONG_DOUBLE
 double
-__cabsl(z)
-       struct __cabs_complexl z;
+__cabsl (struct __cabs_complexl z)
 {
        return __hypotl(z.x, z.y);
 }
index 20ff5b7744174756addf6d34007587b55be12e65..6b6dd8d131507555d8de1c7d8d7c0240008a10db 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * cabsf() wrapper for hypotf().
- * 
+ *
  * Written by J.T. Conklin, <jtc@wimsey.com>
  * Placed into the Public Domain, 1994.
  */
@@ -8,9 +8,13 @@
 #include "math.h"
 #include "math_private.h"
 
+struct __cabs_complexf
+{
+  float x, y;
+};
+
 float
-__cabsf(z)
-       struct __cabs_complexf z;
+__cabsf (struct __cabs_complexf z)
 {
        return __hypotf(z.x, z.y);
 }
index 21ef860a95ed0dd4947a20c57d5e787df8c6a3de..f4ae170e53f7d607f7c64f00eb8406e56b53c9e1 100644 (file)
@@ -9,9 +9,13 @@
 
 #include <math.h>
 
+struct __cabs_complexl
+{
+  long double x, y;
+};
+
 long double
-__cabsl(z)
-       struct __cabs_complexl z;
+__cabsl (struct __cabs_complexl z)
 {
        return __hypotl(z.x, z.y);
 }