mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-15 04:20:28 +08:00
Fix wordsize-64 cosh regression (bug 14273).
(cherry picked from commit b7abb4bf78
)
This commit is contained in:
parent
b640404bd8
commit
725b8ee08a
@ -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
2
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
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user