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