Sign in
chromium
/
native_client
/
nacl-newlib
/
refs/heads/upstream/master
/
.
/
newlib
/
libm
/
mathfp
/
wf_cabs.c
blob: c3ed0caa2415e459745b01def2fe142f43a69b74 [
file
] [
log
] [
blame
] [
edit
]
/*
* cabsf() wrapper for hypotf().
*
* Written by J.T. Conklin, <jtc@wimsey.com>
* Placed into the Public Domain, 1994.
*/
#include
"fdlibm.h"
struct
complex
{
float
x
;
float
y
;
};
float
cabsf
(
z
)
struct
complex z
;
{
return
hypotf
(
z
.
x
,
z
.
y
);
}