mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 09:01:07 +00:00
Update.
2001-02-12 Ulrich Drepper <drepper@redhat.com> * sysdeps/dbl-64/e_j0.c: Little optimization, use sincos. * sysdeps/flt-32/e_j0f.c: Likewise. * sysdeps/ldbl-96/e_j0l.c: Likewise.
This commit is contained in:
parent
0e3af135e1
commit
8de5da94ce
@ -1,3 +1,9 @@
|
|||||||
|
2001-02-12 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/dbl-64/e_j0.c: Little optimization, use sincos.
|
||||||
|
* sysdeps/flt-32/e_j0f.c: Likewise.
|
||||||
|
* sysdeps/ldbl-96/e_j0l.c: Likewise.
|
||||||
|
|
||||||
2000-12-02 H.J. Lu <hjl@gnu.org>
|
2000-12-02 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* resolv/res_libc.c (res_init): Don't make it default.
|
* resolv/res_libc.c (res_init): Don't make it default.
|
||||||
|
@ -84,7 +84,7 @@ res_init(void) {
|
|||||||
|
|
||||||
#if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_2)
|
#if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_2)
|
||||||
# undef res_init
|
# undef res_init
|
||||||
trong_alias (__res_init, __res_init_weak);
|
strong_alias (__res_init, __res_init_weak);
|
||||||
weak_extern (__res_init_weak);
|
weak_extern (__res_init_weak);
|
||||||
compat_symbol (libc, __res_init_weak, res_init, GLIBC_2_0);
|
compat_symbol (libc, __res_init_weak, res_init, GLIBC_2_0);
|
||||||
#endif
|
#endif
|
||||||
|
@ -111,8 +111,7 @@ static double zero = 0.0;
|
|||||||
if(ix>=0x7ff00000) return one/(x*x);
|
if(ix>=0x7ff00000) return one/(x*x);
|
||||||
x = fabs(x);
|
x = fabs(x);
|
||||||
if(ix >= 0x40000000) { /* |x| >= 2.0 */
|
if(ix >= 0x40000000) { /* |x| >= 2.0 */
|
||||||
s = __sin(x);
|
__sincos (x, &s, &c);
|
||||||
c = __cos(x);
|
|
||||||
ss = s-c;
|
ss = s-c;
|
||||||
cc = s+c;
|
cc = s+c;
|
||||||
if(ix<0x7fe00000) { /* make sure x+x not overflow */
|
if(ix<0x7fe00000) { /* make sure x+x not overflow */
|
||||||
|
@ -66,8 +66,7 @@ static float zero = 0.0;
|
|||||||
if(ix>=0x7f800000) return one/(x*x);
|
if(ix>=0x7f800000) return one/(x*x);
|
||||||
x = fabsf(x);
|
x = fabsf(x);
|
||||||
if(ix >= 0x40000000) { /* |x| >= 2.0 */
|
if(ix >= 0x40000000) { /* |x| >= 2.0 */
|
||||||
s = __sinf(x);
|
__sincosf (x, &s, &c);
|
||||||
c = __cosf(x);
|
|
||||||
ss = s-c;
|
ss = s-c;
|
||||||
cc = s+c;
|
cc = s+c;
|
||||||
if(ix<0x7f000000) { /* make sure x+x not overflow */
|
if(ix<0x7f000000) { /* make sure x+x not overflow */
|
||||||
|
@ -119,8 +119,7 @@ __ieee754_j0l (x)
|
|||||||
x = fabsl (x);
|
x = fabsl (x);
|
||||||
if (ix >= 0x4000) /* |x| >= 2.0 */
|
if (ix >= 0x4000) /* |x| >= 2.0 */
|
||||||
{
|
{
|
||||||
s = __sinl (x);
|
__sincosl (x, &s, &c);
|
||||||
c = __cosl (x);
|
|
||||||
ss = s - c;
|
ss = s - c;
|
||||||
cc = s + c;
|
cc = s + c;
|
||||||
if (ix < 0x7ffe)
|
if (ix < 0x7ffe)
|
||||||
|
Loading…
Reference in New Issue
Block a user