Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/math/wf_cabs.c')
-rw-r--r--newlib/libm/math/wf_cabs.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/newlib/libm/math/wf_cabs.c b/newlib/libm/math/wf_cabs.c
new file mode 100644
index 000000000..c3ed0caa2
--- /dev/null
+++ b/newlib/libm/math/wf_cabs.c
@@ -0,0 +1,20 @@
+/*
+ * cabsf() wrapper for hypotf().
+ *
+ * Written by J.T. Conklin, <jtc@wimsey.com>
+ * Placed into the Public Domain, 1994.
+ */
+
+#include "fdlibm.h"
+
+struct complex {
+ float x;
+ float y;
+};
+
+float
+cabsf(z)
+ struct complex z;
+{
+ return hypotf(z.x, z.y);
+}