Explorar o código

add C stub for sqrtl (already implemented in asm on i386 and x86_64)

Rich Felker %!s(int64=13) %!d(string=hai) anos
pai
achega
da5d89d42f
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  1. 9 0
      src/math/sqrtl.c

+ 9 - 0
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);
+}