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/16517] Missing underflow exception from tanf/tan/tanl


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

--- 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  37550cb3d6591a8f443467707ec80b4ab5c2e157 (commit)
      from  db2bcbcb631f1c1aa023ef9f23a968e1ac288423 (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=37550cb3d6591a8f443467707ec80b4ab5c2e157

commit 37550cb3d6591a8f443467707ec80b4ab5c2e157
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Aug 7 23:10:35 2015 +0000

    Fix tan missing underflows (bug 16517).

    Similar to various other bugs in this area, some tan 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 #16517]
        * sysdeps/ieee754/dbl-64/s_tan.c: Include <float.h>.
        (tan): Force underflow exception for arguments with small absolute
        value.
        * sysdeps/ieee754/flt-32/k_tanf.c: Include <float.h>.
        (__kernel_tanf): Force underflow exception for arguments with
        small absolute value.
        * sysdeps/ieee754/ldbl-128/k_tanl.c: Include <float.h>.
        (__kernel_tanl): Force underflow exception for arguments with
        small absolute value.
        * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Include <float.h>.
        (__kernel_tanl): Force underflow exception for arguments with
        small absolute value.
        * sysdeps/ieee754/ldbl-96/k_tanl.c: Include <float.h>.
        (__kernel_tanl): Force underflow exception for arguments with
        small absolute value.
        * math/auto-libm-test-in: Add more tests of tan.
        * math/auto-libm-test-out: Regenerated.

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

Summary of changes:
 ChangeLog                            |   21 +++
 NEWS                                 |    2 +-
 math/auto-libm-test-in               |    4 +
 math/auto-libm-test-out              |  316 ++++++++++++++++++++++++++++++++++
 sysdeps/ieee754/dbl-64/s_tan.c       |    6 +
 sysdeps/ieee754/flt-32/k_tanf.c      |   13 ++-
 sysdeps/ieee754/ldbl-128/k_tanl.c    |   12 ++-
 sysdeps/ieee754/ldbl-128ibm/k_tanl.c |   12 ++-
 sysdeps/ieee754/ldbl-96/k_tanl.c     |   12 ++-
 9 files changed, 393 insertions(+), 5 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]