diff options
Diffstat (limited to 'newlib/libm/mathfp/wf_cabs.c')
-rw-r--r-- | newlib/libm/mathfp/wf_cabs.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/newlib/libm/mathfp/wf_cabs.c b/newlib/libm/mathfp/wf_cabs.c new file mode 100644 index 0000000..c3ed0ca --- /dev/null +++ b/newlib/libm/mathfp/wf_cabs.c @@ -0,0 +1,20 @@ +/* + * 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); +} |