This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/16520] Missing underflow exception from tanhf


https://sourceware.org/bugzilla/show_bug.cgi?id=16520

--- Comment #3 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  37d83a089ddf7649ea0a97d4121883381e23f999 (commit)
      from  a5cf909b8f25f8240eabc5f1ff96b4be0472d8e1 (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=37d83a089ddf7649ea0a97d4121883381e23f999

commit 37d83a089ddf7649ea0a97d4121883381e23f999
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Aug 13 16:40:39 2015 +0000

    Fix tanh missing underflows (bug 16520).

    Similar to various other bugs in this area, some tanh 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 #16520]
        * sysdeps/ieee754/dbl-64/s_tanh.c: Include <float.h>.
        (__tanh): Force underflow exception for arguments with small
        absolute value.
        * sysdeps/ieee754/flt-32/s_tanhf.c: Include <float.h>.
        (__tanhf): Force underflow exception for arguments with small
        absolute value.
        * sysdeps/ieee754/ldbl-128/s_tanhl.c: Include <float.h>.
        (__tanhl): Force underflow exception for arguments with small
        absolute value.
        * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Include <float.h>.
        (__tanhl): Force underflow exception for arguments with small
        absolute value.
        * sysdeps/ieee754/ldbl-96/s_tanhl.c: Include <float.h>.
        (__tanhl): Force underflow exception for arguments with small
        absolute value.
        * math/auto-libm-test-in: Add more tests of tanh.
        * math/auto-libm-test-out: Regenerated.
        * sysdeps/i386/fpu/libm-test-ulps: Update.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                             |   22 +++
 NEWS                                  |    4 +-
 math/auto-libm-test-in                |    4 +
 math/auto-libm-test-out               |  316 +++++++++++++++++++++++++++++++++
 sysdeps/i386/fpu/libm-test-ulps       |    4 +
 sysdeps/ieee754/dbl-64/s_tanh.c       |   10 +-
 sysdeps/ieee754/flt-32/s_tanhf.c      |    8 +
 sysdeps/ieee754/ldbl-128/s_tanhl.c    |   10 +-
 sysdeps/ieee754/ldbl-128ibm/s_tanhl.c |    8 +
 sysdeps/ieee754/ldbl-96/s_tanhl.c     |    8 +
 10 files changed, 390 insertions(+), 4 deletions(-)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]