This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/16538] Missing underflow exception from sin/sinl
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 23 Jun 2015 22:25:29 +0000
- Subject: [Bug math/16538] Missing underflow exception from sin/sinl
- Auto-submitted: auto-generated
- References: <bug-16538-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=16538
--- Comment #2 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 ad39cce0da0161dba69781c53349acf2e23f156c (commit)
from 8b1bab5ffa235bc494c33fdbe4c9994202936cfc (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=ad39cce0da0161dba69781c53349acf2e23f156c
commit ad39cce0da0161dba69781c53349acf2e23f156c
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue Jun 23 22:24:20 2015 +0000
Fix sin, sincos missing underflows (bug 16526, bug 16538).
Similar to various other bugs in this area, some sin and sincos
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.
Tested for x86_64, x86, mips64 and powerpc.
[BZ #16526]
[BZ #16538]
* sysdeps/ieee754/dbl-64/s_sin.c: Include <float.h>.
(__sin): Force underflow exception for arguments with small
absolute value.
* sysdeps/ieee754/flt-32/k_sinf.c: Include <float.h>.
(__kernel_sinf): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-128/k_sincosl.c: Include <float.h>.
(__kernel_sincosl): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-128/k_sinl.c: Include <float.h>.
(__kernel_sinl): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Include <float.h>.
(__kernel_sincosl): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Include <float.h>.
(__kernel_sinl): Force underflow exception for arguments with
small absolute value.
* sysdeps/ieee754/ldbl-96/k_sinl.c: Include <float.h>.
(__kernel_sinl): Force underflow exception for arguments with
small absolute value.
* sysdeps/powerpc/fpu/k_sinf.c: Include <float.h>.
(__kernel_sinf): Force underflow exception for arguments with
small absolute value.
* math/auto-libm-test-in: Add more tests of sin and sincos.
* math/auto-libm-test-out: Regenerated.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 29 ++
NEWS | 28 +-
math/auto-libm-test-in | 8 +
math/auto-libm-test-out | 632 +++++++++++++++++++++++++++++++
sysdeps/ieee754/dbl-64/s_sin.c | 10 +-
sysdeps/ieee754/flt-32/k_sinf.c | 11 +-
sysdeps/ieee754/ldbl-128/k_sincosl.c | 20 +-
sysdeps/ieee754/ldbl-128/k_sinl.c | 10 +-
sysdeps/ieee754/ldbl-128ibm/k_sincosl.c | 20 +-
sysdeps/ieee754/ldbl-128ibm/k_sinl.c | 10 +-
sysdeps/ieee754/ldbl-96/k_sinl.c | 10 +-
sysdeps/powerpc/fpu/k_sinf.c | 6 +-
12 files changed, 762 insertions(+), 32 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.