summaryrefslogtreecommitdiff
path: root/lib/libm/powl.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libm/powl.c')
-rw-r--r--lib/libm/powl.c48
1 files changed, 19 insertions, 29 deletions
diff --git a/lib/libm/powl.c b/lib/libm/powl.c
index 26a9b5ae..d47e6307 100644
--- a/lib/libm/powl.c
+++ b/lib/libm/powl.c
@@ -93,43 +93,33 @@ static const long double Q[] = {
* If i is even, A[i] + B[i/2] gives additional accuracy.
*/
static const long double A[33] = {
- 1.0000000000000000000000E0L, 9.7857206208770013448287E-1L,
- 9.5760328069857364691013E-1L, 9.3708381705514995065011E-1L,
- 9.1700404320467123175367E-1L, 8.9735453750155359320742E-1L,
- 8.7812608018664974155474E-1L, 8.5930964906123895780165E-1L,
- 8.4089641525371454301892E-1L, 8.2287773907698242225554E-1L,
- 8.0524516597462715409607E-1L, 7.8799042255394324325455E-1L,
- 7.7110541270397041179298E-1L, 7.5458221379671136985669E-1L,
- 7.3841307296974965571198E-1L, 7.2259040348852331001267E-1L,
- 7.0710678118654752438189E-1L, 6.9195494098191597746178E-1L,
- 6.7712777346844636413344E-1L, 6.6261832157987064729696E-1L,
- 6.4841977732550483296079E-1L, 6.3452547859586661129850E-1L,
- 6.2092890603674202431705E-1L, 6.0762367999023443907803E-1L,
- 5.9460355750136053334378E-1L, 5.8186242938878875689693E-1L,
- 5.6939431737834582684856E-1L, 5.5719337129794626814472E-1L,
- 5.4525386633262882960438E-1L, 5.3357020033841180906486E-1L,
- 5.2213689121370692017331E-1L, 5.1094857432705833910408E-1L,
- 5.0000000000000000000000E-1L,
+ 1.0000000000000000000000E0L, 9.7857206208770013448287E-1L, 9.5760328069857364691013E-1L,
+ 9.3708381705514995065011E-1L, 9.1700404320467123175367E-1L, 8.9735453750155359320742E-1L,
+ 8.7812608018664974155474E-1L, 8.5930964906123895780165E-1L, 8.4089641525371454301892E-1L,
+ 8.2287773907698242225554E-1L, 8.0524516597462715409607E-1L, 7.8799042255394324325455E-1L,
+ 7.7110541270397041179298E-1L, 7.5458221379671136985669E-1L, 7.3841307296974965571198E-1L,
+ 7.2259040348852331001267E-1L, 7.0710678118654752438189E-1L, 6.9195494098191597746178E-1L,
+ 6.7712777346844636413344E-1L, 6.6261832157987064729696E-1L, 6.4841977732550483296079E-1L,
+ 6.3452547859586661129850E-1L, 6.2092890603674202431705E-1L, 6.0762367999023443907803E-1L,
+ 5.9460355750136053334378E-1L, 5.8186242938878875689693E-1L, 5.6939431737834582684856E-1L,
+ 5.5719337129794626814472E-1L, 5.4525386633262882960438E-1L, 5.3357020033841180906486E-1L,
+ 5.2213689121370692017331E-1L, 5.1094857432705833910408E-1L, 5.0000000000000000000000E-1L,
};
static const long double B[17] = {
- 0.0000000000000000000000E0L, 2.6176170809902549338711E-20L,
- -1.0126791927256478897086E-20L, 1.3438228172316276937655E-21L,
- 1.2207982955417546912101E-20L, -6.3084814358060867200133E-21L,
- 1.3164426894366316434230E-20L, -1.8527916071632873716786E-20L,
- 1.8950325588932570796551E-20L, 1.5564775779538780478155E-20L,
- 6.0859793637556860974380E-21L, -2.0208749253662532228949E-20L,
- 1.4966292219224761844552E-20L, 3.3540909728056476875639E-21L,
- -8.6987564101742849540743E-22L, -1.2327176863327626135542E-20L,
- 0.0000000000000000000000E0L,
+ 0.0000000000000000000000E0L, 2.6176170809902549338711E-20L, -1.0126791927256478897086E-20L,
+ 1.3438228172316276937655E-21L, 1.2207982955417546912101E-20L, -6.3084814358060867200133E-21L,
+ 1.3164426894366316434230E-20L, -1.8527916071632873716786E-20L, 1.8950325588932570796551E-20L,
+ 1.5564775779538780478155E-20L, 6.0859793637556860974380E-21L, -2.0208749253662532228949E-20L,
+ 1.4966292219224761844552E-20L, 3.3540909728056476875639E-21L, -8.6987564101742849540743E-22L,
+ -1.2327176863327626135542E-20L, 0.0000000000000000000000E0L,
};
/* 2^x = 1 + x P(x),
* on the interval -1/32 <= x <= 0
*/
static const long double R[] = {
- 1.5089970579127659901157E-5L, 1.5402715328927013076125E-4L,
- 1.3333556028915671091390E-3L, 9.6181291046036762031786E-3L,
- 5.5504108664798463044015E-2L, 2.4022650695910062854352E-1L,
+ 1.5089970579127659901157E-5L, 1.5402715328927013076125E-4L, 1.3333556028915671091390E-3L,
+ 9.6181291046036762031786E-3L, 5.5504108664798463044015E-2L, 2.4022650695910062854352E-1L,
6.9314718055994530931447E-1L,
};