aboutsummaryrefslogtreecommitdiff
path: root/newlib/libm/math/wf_cabs.c
blob: c3ed0caa2415e459745b01def2fe142f43a69b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
}