summaryrefslogtreecommitdiff
path: root/sysdeps/libm-ieee754
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-06-02 11:53:21 +0000
committerUlrich Drepper <drepper@redhat.com>1999-06-02 11:53:21 +0000
commita384fa77082e93b172f129e249b7489ad0c493ad (patch)
treeec710c533f46652e0fcad4e5bb93ed5c705e3f64 /sysdeps/libm-ieee754
parentb8cb072d1f364c36ec68b985b5cc174af471d86d (diff)
downloadglibc-a384fa77082e93b172f129e249b7489ad0c493ad.tar.gz
Update.
1999-06-02 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/libm-ieee754/e_j0.c (__ieee754_y0): Fix array indices. Patch by mhagger@dera.gov.uk [PR libc/1145]. * math/libm-test.c (y1_test): New tests. (y0_test): Likewise. (j1_test): Likewise. (j0_test): Likewise. (main): Added new tests. 1999-06-02 Jakub Jelinek <jj@ultra.linux.cz>
Diffstat (limited to 'sysdeps/libm-ieee754')
-rw-r--r--sysdeps/libm-ieee754/e_j0.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/libm-ieee754/e_j0.c b/sysdeps/libm-ieee754/e_j0.c
index ff4c73bceb..55e8294bb9 100644
--- a/sysdeps/libm-ieee754/e_j0.c
+++ b/sysdeps/libm-ieee754/e_j0.c
@@ -234,9 +234,9 @@ V[] = {1.27304834834123699328e-02, /* 0x3F8A1270, 0x91C9C71A */
u2 = U[2]+z*U[3]; z4=z2*z2;
u3 = U[4]+z*U[5]; z6=z4*z2;
u = u1 + z2*u2 + z4*u3 + z6*U[6];
- v1 = one+z*V[1];
- v2 = V[2]+z*V[3];
- v = v1 + z2*v2 + z4*V[4];
+ v1 = one+z*V[0];
+ v2 = V[1]+z*V[2];
+ v = v1 + z2*v2 + z4*V[3];
#endif
return(u/v + tpi*(__ieee754_j0(x)*__ieee754_log(x)));
}