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/19594] [ldbl-128ibm] roundl incorrect in non-default rounding modes


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

--- 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  b9a76339be2514c700d801e179ef9b6c910eaedf (commit)
      from  e2310a27bede834c7b63a8bd1d659c376b6388df (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=b9a76339be2514c700d801e179ef9b6c910eaedf

commit b9a76339be2514c700d801e179ef9b6c910eaedf
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu Feb 18 22:24:32 2016 +0000

    Fix ldbl-128ibm roundl for non-default rounding modes (bug 19594).

    The ldbl-128ibm implementation of roundl is only correct in
    round-to-nearest mode (in other modes, there are incorrect results and
    overflow exceptions in some cases).  This patch reimplements it along
    the lines used for floorl, ceill and truncl, using __round on the high
    part, and on the low part if the high part is an integer, and then
    adjusting in the cases where this is incorrect.

    Tested for powerpc.

        [BZ #19594]
        * sysdeps/ieee754/ldbl-128ibm/s_roundl.c (__roundl): Use __round
        on high and low parts then adjust result and use
        ldbl_canonicalize_int if needed.

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

Summary of changes:
 ChangeLog                              |    5 ++
 sysdeps/ieee754/ldbl-128ibm/s_roundl.c |   70 +++++++++++++++----------------
 2 files changed, 39 insertions(+), 36 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]