add C stub for sqrtl (already implemented in asm on i386 and x86_64)
authorRich Felker <dalias@aerifal.cx>
Tue, 1 May 2012 01:32:19 +0000 (21:32 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 1 May 2012 01:32:19 +0000 (21:32 -0400)
src/math/sqrtl.c

index e69de29..0645cca 100644 (file)
@@ -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);
+}