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/18039] [ldbl-128] acosl inaccurate


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

--- 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  1d9ab20c14211abbf45514e63c190dfeec27fa5e (commit)
      from  ec0ce0d3be4ae21add09139c705852ed8bb114c7 (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=1d9ab20c14211abbf45514e63c190dfeec27fa5e

commit 1d9ab20c14211abbf45514e63c190dfeec27fa5e
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Feb 26 21:06:34 2015 +0000

    Fix ldbl-128/ldbl-128ibm acosl inaccuracy (bug 18038, bug 18039).

    The ldbl-128 and ldbl-128ibm implementations of acosl have similar
    bugs, using a threshold of 0x1p-57L to determine when they just return
    pi/2.  Since the result pi/2 - asinl (x) is roughly pi/2 - x for small
    x, the relevant cut-off is actually x being < 0.5ulp of 1.  This patch
    fixes the implementations to use that cut-off and adds tests of small
    acos arguments.

    Tested for powerpc and mips64.  Also tested for x86_64 and x86; no
    ulps updates needed.

        [BZ #18038]
        [BZ #18039]
        * sysdeps/ieee754/ldbl-128/e_acosl.c (__ieee754_acosl): Only
        return pi/2 for arguments below 0x1p-113L.
        * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Only
        return pi/2 for arguments below 0x1p-106L.
        * math/auto-libm-test-in: Add more tests of acos.
        * math/auto-libm-test-out: Regenerated.

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

Summary of changes:
 ChangeLog                             |    9 +
 NEWS                                  |    2 +-
 math/auto-libm-test-in                |   31 ++
 math/auto-libm-test-out               |  775 +++++++++++++++++++++++++++++++++
 sysdeps/ieee754/ldbl-128/e_acosl.c    |    2 +-
 sysdeps/ieee754/ldbl-128ibm/e_acosl.c |    2 +-
 6 files changed, 818 insertions(+), 3 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]