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/16362] clog10 (-0 +/- 0i) incorrect


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

--- 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  289e0779571a36a8f30ae0408b4902bb7f2ab92e (commit)
      from  277ae3f186eb9158219aacf20199cdd02ad133e7 (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=289e0779571a36a8f30ae0408b4902bb7f2ab92e

commit 289e0779571a36a8f30ae0408b4902bb7f2ab92e
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Mar 28 20:53:32 2014 +0000

    Fix clog10 (-0 +/- 0i) (bug 16362).

    This patch fixes the imaginary part of clog10 (-0 +/- 0i), which
    should be +/-pi / log(10) by analogy with clog (the functions were
    wrongly returning a result with imaginary part +/-pi, same as for
    clog, and the tests matched the incorrect result, though both
    functions and tests were correct for the similar case of clog10 (-inf
    +/- 0i)).  Tested x86_64 and x86.

        [BZ #16362]
        * math/s_clog10.c (M_PI_LOG10E): New macro.
        (__clog10): Use M_PI_LOG10E instead of M_PI when real and
        imaginary parts are 0.
        * math/s_clog10f.c (M_PI_LOG10Ef): New macro.
        (__clog10f): Use M_PI_LOG10Ef instead of M_PI when real and
        imaginary parts are 0.
        * math/s_clog10l.c (M_PI_LOG10El): New macro.
        (__clog10l): Use M_PI_LOG10El instead of M_PIl when real and
        imaginary parts are 0.
        * math/libm-test.inc (clog10_test_data): Update expected results
        for when real and imaginary parts are 0.

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

Summary of changes:
 ChangeLog          |   15 +++++++++++++++
 NEWS               |   10 +++++-----
 math/libm-test.inc |    4 ++--
 math/s_clog10.c    |    5 ++++-
 math/s_clog10f.c   |    5 ++++-
 math/s_clog10l.c   |    5 ++++-
 6 files changed, 34 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]