freebsd-dev/lib/msun/src/w_cabs.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
365 B
C
Raw Normal View History

/*
* cabs() wrapper for hypot().
1995-05-30 05:51:47 +00:00
*
* Written by J.T. Conklin, <jtc@wimsey.com>
* Placed into the Public Domain, 1994.
*/
2008-02-22 02:30:36 +00:00
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <complex.h>
#include <float.h>
#include <math.h>
double
cabs(double complex z)
{
return hypot(creal(z), cimag(z));
}
#if LDBL_MANT_DIG == 53
__weak_reference(cabs, cabsl);
#endif