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/20357] Incorrect cos result for 1.5174239687223976


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

--- Comment #6 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, gentoo/2.23 has been updated
       via  2286e84a642ddeef1df3c485cd63ce354d266140 (commit)
      from  e9aaed078f554f6e66de3f6706356621ce5f3193 (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=2286e84a642ddeef1df3c485cd63ce354d266140

commit 2286e84a642ddeef1df3c485cd63ce354d266140
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
Date:   Mon Jul 18 22:33:09 2016 +0530

    Fix cos computation for multiple precision fallback (bz #20357)

    During the sincos consolidation I made two mistakes, one was a logical
    error due to which cos(0x1.8475e5afd4481p+0) returned
    sin(0x1.8475e5afd4481p+0) instead.

    The second issue was an error in negating inputs for the correct
    quadrants for sine.  I could not find a suitable test case for this
    despite running a program to search for such an input for a couple of
    hours.

    Following patch fixes both issues.  Tested on x86_64.  Thanks to Matt
    Clay for identifying the issue.

        [BZ #20357]
        * sysdeps/ieee754/dbl-64/s_sin.c (sloww): Fix up condition
        to call __mpsin/__mpcos and to negate values.
        * math/auto-libm-test-in: Add test.
        * math/auto-libm-test-out: Regenerate.

    (cherry picked from commit cbf88869edced4b23d792d95a8626e35b831df35)
    (cherry picked from commit 422facff9f2c4972e2dc46090a704d11b840b0c0)

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

Summary of changes:
 math/auto-libm-test-in         |    3 +
 math/auto-libm-test-out        |  207 ++++++++++++++++++++++++++++++++++++++++
 sysdeps/ieee754/dbl-64/s_sin.c |    4 +-
 3 files changed, 212 insertions(+), 2 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]