commit | da5d89d42fb47c648fb83645e5e4a55bae907032 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Mon Apr 30 21:32:19 2012 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Mon Apr 30 21:32:19 2012 -0400 |
tree | 73d43309df3de19ceb9b48130068c330b3ada577 | |
parent | f6819755779a084bf2f82cb90175a4d9a018de73 [diff] |
add C stub for sqrtl (already implemented in asm on i386 and x86_64)
diff --git a/src/math/sqrtl.c b/src/math/sqrtl.c index e69de29..0645cca 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); +}