From da5d89d42fb47c648fb83645e5e4a55bae907032 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 30 Apr 2012 21:32:19 -0400 Subject: add C stub for sqrtl (already implemented in asm on i386 and x86_64) --- src/math/sqrtl.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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 + +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); +} -- cgit v1.2.1