about summary refs log tree commit diff
path: root/sysdeps/ieee754/dbl-64/e_j1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-02-13 01:23:48 +0000
committerUlrich Drepper <drepper@redhat.com>2001-02-13 01:23:48 +0000
commit5d2a88a70e3a40d93e7c6c821b9f22746b3a11a3 (patch)
treeaad692051ec8635ec14fcebf8aa714f637f3b569 /sysdeps/ieee754/dbl-64/e_j1.c
parent8de5da94ce5a2f01369ecc9dbe63684e6245dbdd (diff)
downloadglibc-5d2a88a70e3a40d93e7c6c821b9f22746b3a11a3.tar.gz
glibc-5d2a88a70e3a40d93e7c6c821b9f22746b3a11a3.tar.xz
glibc-5d2a88a70e3a40d93e7c6c821b9f22746b3a11a3.zip
Little optimization, use sincos.
Diffstat (limited to 'sysdeps/ieee754/dbl-64/e_j1.c')
-rw-r--r--sysdeps/ieee754/dbl-64/e_j1.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sysdeps/ieee754/dbl-64/e_j1.c b/sysdeps/ieee754/dbl-64/e_j1.c
index f5f5c28830..260492ae67 100644
--- a/sysdeps/ieee754/dbl-64/e_j1.c
+++ b/sysdeps/ieee754/dbl-64/e_j1.c
@@ -112,8 +112,7 @@ static double zero    = 0.0;
 	if(ix>=0x7ff00000) return one/x;
 	y = fabs(x);
 	if(ix >= 0x40000000) {	/* |x| >= 2.0 */
-		s = __sin(y);
-		c = __cos(y);
+		__sincos (y, &s, &c);
 		ss = -s-c;
 		cc = s-c;
 		if(ix<0x7fe00000) {  /* make sure y+y not overflow */
@@ -194,8 +193,7 @@ static double V0[5] = {
         if((ix|lx)==0) return -one/zero;
         if(hx<0) return zero/zero;
         if(ix >= 0x40000000) {  /* |x| >= 2.0 */
-                s = __sin(x);
-                c = __cos(x);
+		__sincos (x, &s, &c);
                 ss = -s-c;
                 cc = s-c;
                 if(ix<0x7fe00000) {  /* make sure x+x not overflow */