about summary refs log tree commit diff
path: root/sysdeps/libm-ieee754/w_cabsl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/libm-ieee754/w_cabsl.c')
-rw-r--r--sysdeps/libm-ieee754/w_cabsl.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/sysdeps/libm-ieee754/w_cabsl.c b/sysdeps/libm-ieee754/w_cabsl.c
new file mode 100644
index 0000000000..e82130d46d
--- /dev/null
+++ b/sysdeps/libm-ieee754/w_cabsl.c
@@ -0,0 +1,18 @@
+/*
+ * cabsl() wrapper for hypotl().
+ *
+ * Written by J.T. Conklin, <jtc@wimsey.com>
+ * Conversion to long double by Ulrich Drepper,
+ * Cygnus Support, drepper@cygnus.com.
+ * Placed into the Public Domain, 1994.
+ */
+
+#include <math.h>
+
+long double
+__cabsl(z)
+	struct __cabsl_complex z;
+{
+	return __hypotl(z.x, z.y);
+}
+weak_alias (__cabsl, cabsl)