mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2025-01-03 23:43:41 +01:00
18 lines
285 B
C
18 lines
285 B
C
/*
|
|
* cabsf() wrapper for hypotf().
|
|
*
|
|
* Written by J.T. Conklin, <jtc@wimsey.com>
|
|
* Placed into the Public Domain, 1994.
|
|
*/
|
|
|
|
#include <complex.h>
|
|
#include <openlibm.h>
|
|
#include "math_private.h"
|
|
|
|
DLLEXPORT float
|
|
cabsf(z)
|
|
float complex z;
|
|
{
|
|
|
|
return hypotf(crealf(z), cimagf(z));
|
|
}
|