diff options
Diffstat (limited to 'winsup/mingw/mingwex/complex/cabsf.c')
-rwxr-xr-x | winsup/mingw/mingwex/complex/cabsf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/complex/cabsf.c b/winsup/mingw/mingwex/complex/cabsf.c new file mode 100755 index 000000000..452e88f1c --- /dev/null +++ b/winsup/mingw/mingwex/complex/cabsf.c @@ -0,0 +1,7 @@ +#include <math.h> +#include <complex.h> + +float cabsf (float complex Z) +{ + return (float) _hypot ( __real__ Z, __imag__ Z); +} |