This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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.
============================================================
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:11:36
@@ -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 (y, &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
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |