diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-04-30 21:32:19 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-04-30 21:32:19 -0400 |
commit | da5d89d42fb47c648fb83645e5e4a55bae907032 (patch) | |
tree | 73d43309df3de19ceb9b48130068c330b3ada577 /src/math/sqrtl.c | |
parent | f6819755779a084bf2f82cb90175a4d9a018de73 (diff) | |
download | musl-da5d89d42fb47c648fb83645e5e4a55bae907032.tar.gz musl-da5d89d42fb47c648fb83645e5e4a55bae907032.tar.xz musl-da5d89d42fb47c648fb83645e5e4a55bae907032.zip |
add C stub for sqrtl (already implemented in asm on i386 and x86_64)
Diffstat (limited to 'src/math/sqrtl.c')
-rw-r--r-- | src/math/sqrtl.c | 9 |
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); +} |