projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f681975
)
add C stub for sqrtl (already implemented in asm on i386 and x86_64)
author
Rich Felker
<dalias@aerifal.cx>
Tue, 1 May 2012 01:32:19 +0000
(21:32 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Tue, 1 May 2012 01:32:19 +0000
(21:32 -0400)
src/math/sqrtl.c
patch
|
blob
|
history
diff --git
a/src/math/sqrtl.c
b/src/math/sqrtl.c
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0645cca0cf95cdf23afee4cd03b87ca61fa88f62 100644
(file)
--- 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);
+}