diff options
Diffstat (limited to 'winsup/mingw/mingwex/complex/cabs.c')
-rw-r--r-- | winsup/mingw/mingwex/complex/cabs.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/mingw/mingwex/complex/cabs.c b/winsup/mingw/mingwex/complex/cabs.c new file mode 100644 index 000000000..ff547dd6e --- /dev/null +++ b/winsup/mingw/mingwex/complex/cabs.c @@ -0,0 +1,7 @@ +#include <math.h> +#include <complex.h> + +double cabs (double complex Z) +{ + return _hypot ( __real__ Z, __imag__ Z); +} |