fix off-by-1 screen title fill
[AROS.git] / compiler / mlib / w_cabs.c
blob577e5e0bc935132025c6b176f56fa46e43a9115b
1 /*
2 * cabs() wrapper for hypot().
4 * Written by J.T. Conklin, <jtc@wimsey.com>
5 * Placed into the Public Domain, 1994.
6 */
8 #ifndef lint
9 static const char rcsid[] =
10 "$FreeBSD: src/lib/msun/src/w_cabs.c,v 1.4 2001/06/13 15:16:30 ru Exp $";
11 #endif /* not lint */
13 #include <complex.h>
14 #include <math.h>
16 double
17 cabs(z)
18 double complex z;
20 return hypot(creal(z), cimag(z));
23 double
24 z_abs(z)
25 double complex *z;
27 return hypot(creal(*z), cimag(*z));