Update.
[glibc.git] / sysdeps / libm-ieee754 / w_cabsf.c
blob6b6dd8d131507555d8de1c7d8d7c0240008a10db
1 /*
2 * cabsf() wrapper for hypotf().
4 * Written by J.T. Conklin, <jtc@wimsey.com>
5 * Placed into the Public Domain, 1994.
6 */
8 #include "math.h"
9 #include "math_private.h"
11 struct __cabs_complexf
13 float x, y;
16 float
17 __cabsf (struct __cabs_complexf z)
19 return __hypotf(z.x, z.y);
21 weak_alias (__cabsf, cabsf)