diff options
author | Ulrich Drepper <drepper@redhat.com> | 1997-12-09 23:49:24 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1997-12-09 23:49:24 +0000 |
commit | e8cd5d9ebd545daa9ee46dbe3cc1741dc71fc107 (patch) | |
tree | f8f527da26678a51fe6af546ab96bc7494097913 | |
parent | 8d2880144fcc97fdb988b51992b1e1d716c9d648 (diff) |
[NO_LONG_DOUBLE]: Correct cabsl.
-rw-r--r-- | sysdeps/libm-ieee754/w_cabs.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sysdeps/libm-ieee754/w_cabs.c b/sysdeps/libm-ieee754/w_cabs.c index 5313cba466..eec09d59bb 100644 --- a/sysdeps/libm-ieee754/w_cabs.c +++ b/sysdeps/libm-ieee754/w_cabs.c @@ -20,10 +20,15 @@ __cabs (struct __cabs_complex z) weak_alias (__cabs, cabs) #ifdef NO_LONG_DOUBLE +struct __cabs_complexl +{ + double x, y; +}; + double __cabsl (struct __cabs_complexl z) { - return __hypotl(z.x, z.y); + return __hypot(z.x, z.y); } weak_alias (__cabsl, cabsl) #endif |