Fix wordsize-64 cosh regression (bug 14273).

(cherry picked from commit b7abb4bf78)
This commit is contained in:
Joseph Myers 2012-06-21 19:26:09 +00:00
parent b640404bd8
commit 725b8ee08a
3 changed files with 7 additions and 1 deletions

View File

@ -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.

2
NEWS
View File

@ -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

View 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;