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/4997] lround(nexafter(0.5,-1)) has incorrect value


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]