Fix for e_j1l: Use sincos

Andreas Jaeger aj@suse.de
Sat Apr 7 11:18:00 GMT 2001


Andreas Jaeger <aj@suse.de> writes:

> Is there a reason that e_j1l doesn't use sincos?
> 
> Here's a patch, ok to commit?
> 
> Andreas
> 
> 2001-04-07  Andreas Jaeger  <aj@suse.de>
> 
> 	* sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Use sincos
> 	instead of separate sin and cos.
> 	(__ieee754_j1l): Likewise.

Upps, my last patch had a copy&paste error - here's the correct
version.

Andreas

============================================================
Index: sysdeps/ieee754/ldbl-96/e_j1l.c
--- sysdeps/ieee754/ldbl-96/e_j1l.c	2001/02/19 09:30:57	1.1
+++ sysdeps/ieee754/ldbl-96/e_j1l.c	2001/04/07 18:16:00
@@ -119,8 +119,7 @@
   y = fabsl (x);
   if (ix >= 0x4000)
     {				/* |x| >= 2.0 */
-      s = __sinl (y);
-      c = __cosl (y);
+      __sincosl (y, &s, &c);
       ss = -s - c;
       cc = s - c;
       if (ix < 0x7ffe)
@@ -214,8 +213,7 @@
     return -one / zero;
   if (ix >= 0x4000)
     {				/* |x| >= 2.0 */
-      s = __sinl (x);
-      c = __cosl (x);
+      __sincosl (x, &s, &c);
       ss = -s - c;
       cc = s - c;
       if (ix < 0x7fe00000)


-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Libc-hacker mailing list