source: trunk/libs/newlib/src/newlib/libm/mathfp/wf_cabs.c @ 567

Last change on this file since 567 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 256 bytes
Line 
1/*
2 * cabsf() wrapper for hypotf().
3 *
4 * Written by J.T. Conklin, <jtc@wimsey.com>
5 * Placed into the Public Domain, 1994.
6 */
7
8#include "fdlibm.h"
9
10struct complex {
11        float x;
12        float y;
13};
14
15float
16cabsf(z)
17        struct complex z;
18{
19        return hypotf(z.x, z.y);
20}
Note: See TracBrowser for help on using the repository browser.