diff options
Diffstat (limited to 'src/complex/cabsf.c')
-rw-r--r-- | src/complex/cabsf.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/complex/cabsf.c b/src/complex/cabsf.c new file mode 100644 index 00000000..30b25c70 --- /dev/null +++ b/src/complex/cabsf.c @@ -0,0 +1,6 @@ +#include "libm.h" + +float cabsf(float complex z) +{ + return hypotf(crealf(z), cimagf(z)); +} |