mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-14 17:59:28 +08:00
5af2a793bc
* libm/common/fdlibm.h: Added ifdef _COMPLEX_H. * libm/complex/*: New complex functions imported from NetBSD. * libm/Makefile.am: Added complex subdir. * libm/Makefile.in: Regenerate. * libm/configure.in: Added complex subdir. * libm/configure: Regenerate.
20 lines
359 B
C
20 lines
359 B
C
/* $NetBSD: cabsf.c,v 1.1 2007/08/20 16:01:30 drochner Exp $ */
|
|
|
|
/*
|
|
* Written by Matthias Drochner <drochner@NetBSD.org>.
|
|
* Public domain.
|
|
*
|
|
* imported and modified include for newlib 2010/10/03
|
|
* Marco Atzeri <marco_atzeri@yahoo.it>
|
|
*/
|
|
|
|
#include <complex.h>
|
|
#include <math.h>
|
|
|
|
float
|
|
cabsf(float complex z)
|
|
{
|
|
|
|
return hypotf( crealf(z), cimagf(z) );
|
|
}
|