0baf5285da56306b531332adfaf8bf1f26bb798a
[dragonfly.git] / lib / libm / complex / cabsf.c
1 /* $NetBSD: cabsf.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */
2
3 /*
4  * Written by Matthias Drochner <drochner@NetBSD.org>.
5  * Public domain.
6  */
7
8 #include <complex.h>
9 #include <math.h>
10 #include "../src/math_private.h"
11
12 float
13 cabsf(float complex z)
14 {
15
16         return hypotf(crealf(z), cimagf(z));
17 }