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/18823] csqrt spurious underflows


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

--- 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  3fb4cfaf1f1e8d58312720c70d224e2050d469fc (commit)
      from  1e15a853ed43e9f71cbec6d36e016d31b0d238a1 (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=3fb4cfaf1f1e8d58312720c70d224e2050d469fc

commit 3fb4cfaf1f1e8d58312720c70d224e2050d469fc
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Aug 17 23:02:54 2015 +0000

    Fix csqrt spurious underflows (bug 18823).

    The csqrt functions scale up small arguments to avoid underflows when
    calling hypot functions.  However, even when hypot does not underflow,
    a subsequent calculation of 0.5 * hypot can underflow.  This patch
    duly increases the threshold and scale factor to avoid such underflows
    as well.

    Tested for x86_64, x86 and mips64.

        [BZ #18823]
        * math/s_csqrt.c (__csqrt): Increase threshold and scale factor
        for scaling up small arguments.
        * math/s_csqrtf.c (__csqrtf): Likewise.
        * math/s_csqrtl.c (__csqrtl): Likewise.
        * math/auto-libm-test-in: Add more tests of csqrt.
        * math/auto-libm-test-out: Regenerated.

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

Summary of changes:
 ChangeLog               |   10 +
 NEWS                    |    2 +-
 math/auto-libm-test-in  |    9 +
 math/auto-libm-test-out | 1832 +++++++++++++++++++++++++++++++++++++++++++++++
 math/s_csqrt.c          |    6 +-
 math/s_csqrtf.c         |    6 +-
 math/s_csqrtl.c         |    6 +-
 7 files changed, 1861 insertions(+), 10 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]