xref: /freebsd/lib/msun/src/w_cabsl.c (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
1 /*
2  * cabs() wrapper for hypot().
3  *
4  * Written by J.T. Conklin, <jtc@wimsey.com>
5  * Placed into the Public Domain, 1994.
6  *
7  * Modified by Steven G. Kargl for the long double type.
8  */
9 
10 #include <sys/cdefs.h>
11 #include <complex.h>
12 #include <math.h>
13 
14 long double
15 cabsl(long double complex z)
16 {
17 	return hypotl(creall(z), cimagl(z));
18 }
19