diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-03-22 12:52:50 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-03-22 12:52:50 +0000 |
commit | c0df8e693f34b535bd6ee1b691bc4ca6bc3b4579 (patch) | |
tree | 9cc7aef340a2766375fb6b317c61df7c1df9b1b5 /sysdeps/ieee754/ldbl-128ibm/k_sinl.c | |
parent | e4d91429aefd7f3ad97457f8935cf675aacfde2a (diff) | |
download | glibc-c0df8e693f34b535bd6ee1b691bc4ca6bc3b4579.zip glibc-c0df8e693f34b535bd6ee1b691bc4ca6bc3b4579.tar.gz glibc-c0df8e693f34b535bd6ee1b691bc4ca6bc3b4579.tar.bz2 |
Fix low-part sign handling in sin/cos for ldbl-128 and ldbl-128ibm.
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm/k_sinl.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm/k_sinl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/k_sinl.c b/sysdeps/ieee754/ldbl-128ibm/k_sinl.c index 484b65f..94aba0b 100644 --- a/sysdeps/ieee754/ldbl-128ibm/k_sinl.c +++ b/sysdeps/ieee754/ldbl-128ibm/k_sinl.c @@ -134,7 +134,7 @@ __kernel_sinl(long double x, long double y, int iy) */ SET_LDOUBLE_WORDS64(h, ((u_int64_t)hix) << 32, 0); if (iy) - l = y - (h - x); + l = (ix < 0 ? -y : y) - (h - x); else l = x - h; z = l * l; |