about summary refs log tree commit diff
path: root/src/math/sqrtl.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-04-30 21:32:19 -0400
committerRich Felker <dalias@aerifal.cx>2012-04-30 21:32:19 -0400
commitda5d89d42fb47c648fb83645e5e4a55bae907032 (patch)
tree73d43309df3de19ceb9b48130068c330b3ada577 /src/math/sqrtl.c
parentf6819755779a084bf2f82cb90175a4d9a018de73 (diff)
downloadmusl-da5d89d42fb47c648fb83645e5e4a55bae907032.tar.gz
musl-da5d89d42fb47c648fb83645e5e4a55bae907032.tar.xz
musl-da5d89d42fb47c648fb83645e5e4a55bae907032.zip
add C stub for sqrtl (already implemented in asm on i386 and x86_64)
Diffstat (limited to 'src/math/sqrtl.c')
-rw-r--r--src/math/sqrtl.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/math/sqrtl.c b/src/math/sqrtl.c
index e69de29b..0645cca0 100644
--- a/src/math/sqrtl.c
+++ b/src/math/sqrtl.c
@@ -0,0 +1,9 @@
+#include <math.h>
+
+long double sqrtl(long double x)
+{
+	/* FIXME: implement sqrtl in C. At least this works for now on
+	 * ARM (which uses ld64), the only arch without sqrtl asm
+	 * that's supported so far. */
+	return sqrt(x);
+}