This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/4997] lround(nexafter(0.5,-1)) has incorrect value
- From: "rsa at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Oct 2007 22:52:12 -0000
- Subject: [Bug math/4997] lround(nexafter(0.5,-1)) has incorrect value
- References: <20070906173748.4997.fxcoudert@gcc.gnu.org>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From rsa at us dot ibm dot com 2007-10-22 22:52 -------
We've identified a bug in the powerpc version of lround whereby if x == 0.5 or
-0.5 exactly the fadd in lround will round improperly due to the guard bits
forcing a shift and round.
Likewise there is a similar case in llround whereby if x is sufficiently large
(max double or min double) and an fadd of 0.5 or -0.5 is performed in llround
the guard bits force a shift and the resultant value will be incorrect.
I'll work on a fix for both cases.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|aj at suse dot de |rsa at us dot ibm dot com
Status|NEW |ASSIGNED
http://sourceware.org/bugzilla/show_bug.cgi?id=4997
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.