This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/18244] remquol(x, INFINITY, &quo) is wrong on x86_64
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 19 May 2015 23:45:20 +0000
- Subject: [Bug math/18244] remquol(x, INFINITY, &quo) is wrong on x86_64
- Auto-submitted: auto-generated
- References: <bug-18244-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18244
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 3ce2232efb008e129908b9f35c4266991d9361de (commit)
from 526af54142db14c1edcd2d80dc1b56d33ff4e8ce (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3ce2232efb008e129908b9f35c4266991d9361de
commit 3ce2232efb008e129908b9f35c4266991d9361de
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue May 19 23:44:28 2015 +0000
Fix ldbl-96 remquol (finite, Inf) (bug 18244).
ldbl-96 remquol wrongly handles the case where the first argument is
finite and the second infinite, because the check for the second
argument being a NaN fails to disregard the explicit high mantissa bit
and so wrongly interprets an infinity as being a NaN. This patch
fixes this by masking off that bit, and improves test coverage for
both remainder and remquo (various cases were missing tests, or, as in
the case of the bug, were tested only for one of the two functions).
Tested for x86_64 and x86.
[BZ #18244]
* sysdeps/ieee754/ldbl-96/s_remquol.c (__remquol): Ignore explicit
high mantissa bit when testing whether P is a NaN.
* math/libm-test.inc (remainder_test_data): Add more tests.
(remquo_test_data): Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 +++++
NEWS | 4 +-
math/libm-test.inc | 37 +++++++++++++++++++++++++++++++++++
sysdeps/ieee754/ldbl-96/s_remquol.c | 2 +-
4 files changed, 46 insertions(+), 3 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.