]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix wordsize-64 cosh regression (bug 14273).
authorJoseph Myers <joseph@codesourcery.com>
Thu, 21 Jun 2012 19:26:09 +0000 (19:26 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 28 Jun 2012 12:12:16 +0000 (12:12 +0000)
(cherry picked from commit b7abb4bf78443f4f8d05a9dfa768fdee65b99d42)

ChangeLog
NEWS
sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c

index 6a9c536141ca1b70986a8603050816642c63133f..cfc58359415e6b5f2f84129dbe8ef947428b9e35 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,11 @@
 
 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #14273]
+       * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
+       Clear sign bit of 64-bit integer value before comparing against
+       overflow value.
+
        [BZ #14167]
        * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
        * configure: Regenerated.
diff --git a/NEWS b/NEWS
index a804824d8f5bfc1e6db738afbdc4448fee244b31..357e31cc19495d4793b533a4fd06b7e3a6a0628a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,7 +10,7 @@ Version 2.15.1
 * The following bugs are resolved with this release:
 
   411, 2547, 2548, 11365, 11494, 13583, 13731, 13732, 13733, 13747, 13748,
-  13749, 13753, 13771, 13774, 13786, 14048, 14059, 14167
+  13749, 13753, 13771, 13774, 13786, 14048, 14059, 14167, 14273
 
 Version 2.15
 
index 41dc42c0af50022d706da5431fd726c94d3d88a6..b8aadabb0eb82e328a9caff7470d8a1564a575d4 100644 (file)
@@ -67,6 +67,7 @@ __ieee754_cosh (double x)
     /* |x| in [log(maxdouble), overflowthresold] */
        int64_t fix;
        EXTRACT_WORDS64(fix, x);
+       fix &= UINT64_C(0x7fffffffffffffff);
        if (fix <= UINT64_C(0x408633ce8fb9f87d)) {
            w = __ieee754_exp(half*fabs(x));
            t = half*w;