update from main archive 961005
[glibc/history.git] / sysdeps / libm-ieee754 / w_cabs.c
blob6c67436c6a7e5ebd84dee5bee1fffff03152439e
1 /*
2 * cabs() wrapper for hypot().
4 * Written by J.T. Conklin, <jtc@wimsey.com>
5 * Placed into the Public Domain, 1994.
6 */
8 #include <math.h>
10 double
11 __cabs(z)
12 struct __cabs_complex z;
14 return __hypot(z.x, z.y);
16 weak_alias (__cabs, cabs)
17 #ifdef NO_LONG_DOUBLE
18 strong_alias (__cabs, __cabsl)
19 weak_alias (__cabs, cabsl)
20 #endif