about summary refs log tree commit diff
diff options
context:
space:
mode:
-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);
+}