]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - lib/msun/src/w_cabsf.c
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / lib / msun / src / w_cabsf.c
1 /*
2  * cabsf() wrapper for hypotf().
3  *
4  * Written by J.T. Conklin, <jtc@wimsey.com>
5  * Placed into the Public Domain, 1994.
6  */
7
8 #ifndef lint
9 static const char rcsid[] =
10   "$FreeBSD$";
11 #endif /* not lint */
12
13 #include <complex.h>
14 #include <math.h>
15 #include "math_private.h"
16
17 float
18 cabsf(z)
19         float complex z;
20 {
21
22         return hypotf(crealf(z), cimagf(z));
23 }