This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/16339] log1p missing underflows
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 14 May 2015 23:39:20 +0000
- Subject: [Bug math/16339] log1p missing underflows
- Auto-submitted: auto-generated
- References: <bug-16339-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16339
--- Comment #5 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 0b7a5f920163d03806d7c5d9d1c83b16942c9496 (commit)
from 95b07fbcc702a83b421cb5d0488ba2817d3123c1 (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=0b7a5f920163d03806d7c5d9d1c83b16942c9496
commit 0b7a5f920163d03806d7c5d9d1c83b16942c9496
Author: Joseph Myers <joseph@codesourcery.com>
Date: Thu May 14 23:38:07 2015 +0000
Fix log1p missing underflows (bug 16339).
Similar to various other bugs in this area, some log1p implementations
do not raise the underflow exception for subnormal arguments, when the
result is tiny and inexact. This patch forces the exception in a
similar way to previous fixes. (The ldbl-128ibm implementation
doesn't currently need any change as it already generates this
exception, albeit through code that would generate spurious exceptions
in other cases; special code for this issue will only be needed there
when fixing the spurious exceptions.)
Tested for x86_64, x86, powerpc and mips64.
[BZ #16339]
* sysdeps/i386/fpu/s_log1p.S (dbl_min): New object.
(__log1p): Force underflow exception for results with small
absolute value.
* sysdeps/i386/fpu/s_log1pf.S (flt_min): New object.
(__log1pf): Force underflow exception for results with small
absolute value.
* sysdeps/ieee754/dbl-64/s_log1p.c: Include <float.h>.
(__log1p): Force underflow exception for results with small
absolute value.
* sysdeps/ieee754/flt-32/s_log1pf.c: Include <float.h>.
(__log1pf): Force underflow exception for results with small
absolute value.
* sysdeps/ieee754/ldbl-128/s_log1pl.c: Include <float.h>.
(__log1pl): Force underflow exception for results with small
absolute value.
* math/auto-libm-test-in: Do not allow missing underflow
exceptions from log1p.
* math/auto-libm-test-out: Regenerated.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 22 ++++
NEWS | 2 +-
math/auto-libm-test-in | 9 +-
math/auto-libm-test-out | 200 +++++++++++++++++-----------------
sysdeps/i386/fpu/s_log1p.S | 27 +++++-
sysdeps/i386/fpu/s_log1pf.S | 27 +++++-
sysdeps/ieee754/dbl-64/s_log1p.c | 10 ++-
sysdeps/ieee754/flt-32/s_log1pf.c | 8 ++
sysdeps/ieee754/ldbl-128/s_log1pl.c | 6 +
9 files changed, 202 insertions(+), 109 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.