diff options
Diffstat (limited to 'lib/msun/src/w_cabsf.c')
-rw-r--r-- | lib/msun/src/w_cabsf.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/lib/msun/src/w_cabsf.c b/lib/msun/src/w_cabsf.c index 6336d6d..e7bfe22 100644 --- a/lib/msun/src/w_cabsf.c +++ b/lib/msun/src/w_cabsf.c @@ -5,17 +5,19 @@ * Placed into the Public Domain, 1994. */ -#include "math.h" -#include "math_private.h" +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif /* not lint */ -struct complex { - float x; - float y; -}; +#include <complex.h> +#include <math.h> +#include "math_private.h" float cabsf(z) - struct complex z; + float complex z; { - return hypotf(z.x, z.y); + + return hypotf(crealf(z), cimagf(z)); } |