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

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

23 lines
346 B
C
Raw Normal View History

/*
* cabsf() wrapper for hypotf().
1995-05-30 05:51:47 +00:00
*
* Written by J.T. Conklin, <jtc@wimsey.com>
* Placed into the Public Domain, 1994.
*/
#ifndef lint
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <complex.h>
#include <math.h>
#include "math_private.h"
float
cabsf(float complex z)
{
return hypotf(crealf(z), cimagf(z));
}