Skip to content

Commit b404fb9

Browse files
committed
local-patches: sync with newlib
This enables sqrt support in libm. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
1 parent 22ed051 commit b404fb9

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From b06f1b57cdf0c6dbe20caaca2da0f78004d71ec4 Mon Sep 17 00:00:00 2001
2+
From: Max Filippov <jcmvbkbc@gmail.com>
3+
Date: Wed, 8 Apr 2015 15:04:45 +0300
4+
Subject: [PATCH 3/3] xtensa: enable sqrt
5+
6+
There's no sqrt in xtensa libgcc, so enable it in libm.
7+
8+
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
9+
---
10+
newlib/libm/math/e_sqrt.c | 6 ------
11+
1 file changed, 6 deletions(-)
12+
13+
diff --git a/newlib/libm/math/e_sqrt.c b/newlib/libm/math/e_sqrt.c
14+
index cd65b62..e21c301 100644
15+
--- a/newlib/libm/math/e_sqrt.c
16+
+++ b/newlib/libm/math/e_sqrt.c
17+
@@ -92,10 +92,6 @@ static const double one = 1.0, tiny=1.0e-300;
18+
static double one = 1.0, tiny=1.0e-300;
19+
#endif
20+
21+
-/* TENSILICA: always using a function in libgcc instead of this one */
22+
-
23+
-#if 0
24+
-
25+
#ifdef __STDC__
26+
double __ieee754_sqrt(double x)
27+
#else
28+
@@ -197,8 +193,6 @@ static double one = 1.0, tiny=1.0e-300;
29+
return z;
30+
}
31+
32+
-#endif /* 0 */
33+
-
34+
#endif /* defined(_DOUBLE_IS_32BITS) */
35+
36+
/*
37+
--
38+
1.8.1.4
39+

0 commit comments

Comments
 (0)