xref: /aosp_15_r20/bionic/libm/upstream-freebsd/lib/msun/src/w_cabsf.c (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1 /*
2  * cabsf() wrapper for hypotf().
3  *
4  * Written by J.T. Conklin, <[email protected]>
5  * Placed into the Public Domain, 1994.
6  */
7 
8 #include <complex.h>
9 #include <math.h>
10 #include "math_private.h"
11 
12 float
cabsf(float complex z)13 cabsf(float complex z)
14 {
15 
16 	return hypotf(crealf(z), cimagf(z));
17 }
18