mirror of git://sourceware.org/git/glibc.git
Update.
2000-10-25 Ulrich Drepper <drepper@redhat.com> * sysdeps/ieee754/dbl-64/e_jn.c: Use __ieee754_sqrt instead of __sqrt. * sysdeps/ieee754/dbl-64/e_j1.c: Likewise. * sysdeps/ieee754/dbl-64/e_j0.c: Likewise. * sysdeps/ieee754/flt-32/e_j1f.c: Likewise. * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
This commit is contained in:
parent
6a39d02719
commit
106599818f
|
|
@ -1,3 +1,11 @@
|
|||
2000-10-25 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* sysdeps/ieee754/dbl-64/e_jn.c: Use __ieee754_sqrt instead of __sqrt.
|
||||
* sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
|
||||
* sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
|
||||
* sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
|
||||
* sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
|
||||
|
||||
2000-10-25 David Mosberger <davidm@hpl.hp.com>
|
||||
|
||||
* sysdeps/unix/sysv/linux/ia64/profil-counter.h: Multiply slot
|
||||
|
|
|
|||
|
|
@ -124,10 +124,10 @@ static double zero = 0.0;
|
|||
* j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x)
|
||||
* y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x)
|
||||
*/
|
||||
if(ix>0x48000000) z = (invsqrtpi*cc)/__sqrt(x);
|
||||
if(ix>0x48000000) z = (invsqrtpi*cc)/__ieee754_sqrt(x);
|
||||
else {
|
||||
u = pzero(x); v = qzero(x);
|
||||
z = invsqrtpi*(u*cc-v*ss)/__sqrt(x);
|
||||
z = invsqrtpi*(u*cc-v*ss)/__ieee754_sqrt(x);
|
||||
}
|
||||
return z;
|
||||
}
|
||||
|
|
@ -215,10 +215,10 @@ V[] = {1.27304834834123699328e-02, /* 0x3F8A1270, 0x91C9C71A */
|
|||
if ((s*c)<zero) cc = z/ss;
|
||||
else ss = z/cc;
|
||||
}
|
||||
if(ix>0x48000000) z = (invsqrtpi*ss)/__sqrt(x);
|
||||
if(ix>0x48000000) z = (invsqrtpi*ss)/__ieee754_sqrt(x);
|
||||
else {
|
||||
u = pzero(x); v = qzero(x);
|
||||
z = invsqrtpi*(u*ss+v*cc)/__sqrt(x);
|
||||
z = invsqrtpi*(u*ss+v*cc)/__ieee754_sqrt(x);
|
||||
}
|
||||
return z;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -125,10 +125,10 @@ static double zero = 0.0;
|
|||
* j1(x) = 1/sqrt(pi) * (P(1,x)*cc - Q(1,x)*ss) / sqrt(x)
|
||||
* y1(x) = 1/sqrt(pi) * (P(1,x)*ss + Q(1,x)*cc) / sqrt(x)
|
||||
*/
|
||||
if(ix>0x48000000) z = (invsqrtpi*cc)/__sqrt(y);
|
||||
if(ix>0x48000000) z = (invsqrtpi*cc)/__ieee754_sqrt(y);
|
||||
else {
|
||||
u = pone(y); v = qone(y);
|
||||
z = invsqrtpi*(u*cc-v*ss)/__sqrt(y);
|
||||
z = invsqrtpi*(u*cc-v*ss)/__ieee754_sqrt(y);
|
||||
}
|
||||
if(hx<0) return -z;
|
||||
else return z;
|
||||
|
|
@ -214,10 +214,10 @@ static double V0[5] = {
|
|||
* sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x))
|
||||
* to compute the worse one.
|
||||
*/
|
||||
if(ix>0x48000000) z = (invsqrtpi*ss)/__sqrt(x);
|
||||
if(ix>0x48000000) z = (invsqrtpi*ss)/__ieee754_sqrt(x);
|
||||
else {
|
||||
u = pone(x); v = qone(x);
|
||||
z = invsqrtpi*(u*ss+v*cc)/__sqrt(x);
|
||||
z = invsqrtpi*(u*ss+v*cc)/__ieee754_sqrt(x);
|
||||
}
|
||||
return z;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ static double zero = 0.00000000000000000000e+00;
|
|||
case 2: temp = -__cos(x)-__sin(x); break;
|
||||
case 3: temp = __cos(x)-__sin(x); break;
|
||||
}
|
||||
b = invsqrtpi*temp/__sqrt(x);
|
||||
b = invsqrtpi*temp/__ieee754_sqrt(x);
|
||||
} else {
|
||||
a = __ieee754_j0(x);
|
||||
b = __ieee754_j1(x);
|
||||
|
|
@ -263,7 +263,7 @@ static double zero = 0.00000000000000000000e+00;
|
|||
case 2: temp = -__sin(x)+__cos(x); break;
|
||||
case 3: temp = __sin(x)+__cos(x); break;
|
||||
}
|
||||
b = invsqrtpi*temp/__sqrt(x);
|
||||
b = invsqrtpi*temp/__ieee754_sqrt(x);
|
||||
} else {
|
||||
u_int32_t high;
|
||||
a = __ieee754_y0(x);
|
||||
|
|
|
|||
|
|
@ -79,10 +79,10 @@ static float zero = 0.0;
|
|||
* j0(x) = 1/sqrt(pi) * (P(0,x)*cc - Q(0,x)*ss) / sqrt(x)
|
||||
* y0(x) = 1/sqrt(pi) * (P(0,x)*ss + Q(0,x)*cc) / sqrt(x)
|
||||
*/
|
||||
if(ix>0x48000000) z = (invsqrtpi*cc)/__sqrtf(x);
|
||||
if(ix>0x48000000) z = (invsqrtpi*cc)/__ieee754_sqrtf(x);
|
||||
else {
|
||||
u = pzerof(x); v = qzerof(x);
|
||||
z = invsqrtpi*(u*cc-v*ss)/__sqrtf(x);
|
||||
z = invsqrtpi*(u*cc-v*ss)/__ieee754_sqrtf(x);
|
||||
}
|
||||
return z;
|
||||
}
|
||||
|
|
@ -161,10 +161,10 @@ v04 = 4.4111031494e-10; /* 0x2ff280c2 */
|
|||
if ((s*c)<zero) cc = z/ss;
|
||||
else ss = z/cc;
|
||||
}
|
||||
if(ix>0x48000000) z = (invsqrtpi*ss)/__sqrtf(x);
|
||||
if(ix>0x48000000) z = (invsqrtpi*ss)/__ieee754_sqrtf(x);
|
||||
else {
|
||||
u = pzerof(x); v = qzerof(x);
|
||||
z = invsqrtpi*(u*ss+v*cc)/__sqrtf(x);
|
||||
z = invsqrtpi*(u*ss+v*cc)/__ieee754_sqrtf(x);
|
||||
}
|
||||
return z;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,10 +80,10 @@ static float zero = 0.0;
|
|||
* j1(x) = 1/sqrt(pi) * (P(1,x)*cc - Q(1,x)*ss) / sqrt(x)
|
||||
* y1(x) = 1/sqrt(pi) * (P(1,x)*ss + Q(1,x)*cc) / sqrt(x)
|
||||
*/
|
||||
if(ix>0x48000000) z = (invsqrtpi*cc)/__sqrtf(y);
|
||||
if(ix>0x48000000) z = (invsqrtpi*cc)/__ieee754_sqrtf(y);
|
||||
else {
|
||||
u = ponef(y); v = qonef(y);
|
||||
z = invsqrtpi*(u*cc-v*ss)/__sqrtf(y);
|
||||
z = invsqrtpi*(u*cc-v*ss)/__ieee754_sqrtf(y);
|
||||
}
|
||||
if(hx<0) return -z;
|
||||
else return z;
|
||||
|
|
@ -158,10 +158,10 @@ static float V0[5] = {
|
|||
* sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x))
|
||||
* to compute the worse one.
|
||||
*/
|
||||
if(ix>0x48000000) z = (invsqrtpi*ss)/__sqrtf(x);
|
||||
if(ix>0x48000000) z = (invsqrtpi*ss)/__ieee754_sqrtf(x);
|
||||
else {
|
||||
u = ponef(x); v = qonef(x);
|
||||
z = invsqrtpi*(u*ss+v*cc)/__sqrtf(x);
|
||||
z = invsqrtpi*(u*ss+v*cc)/__ieee754_sqrtf(x);
|
||||
}
|
||||
return z;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue