projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
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
e69de29
..
0645cca
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);
+}