Fix mdoc(7)/man(7) mix up.
[netbsd-mini2440.git] / lib / libm / compat / compat_cabsf.c
blob65cb3c5668ca08dba9b35951106922f35ea38a77
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 <sys/cdefs.h>
9 #if defined(LIBM_SCCS) && !defined(lint)
10 __RCSID("$NetBSD: compat_cabsf.c,v 1.1 2007/02/22 22:08:19 drochner Exp $");
11 #endif
13 #include "../src/namespace.h"
14 #include <math.h>
16 struct complex {
17 float x;
18 float y;
21 float cabsf __P((struct complex));
22 __warn_references(cabsf, "warning: reference to compatibility cabsf()");
24 float
25 cabsf(struct complex z)
28 return hypotf(z.x, z.y);