public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/11365] New: nearbyintf(float) does not get correct result for 2886220.75 and 3058792.75
@ 2010-03-10  6:12 xcr dot code at gmail dot com
  2010-06-01  3:56 ` [Bug math/11365] " pasky at suse dot cz
  0 siblings, 1 reply; 3+ messages in thread
From: xcr dot code at gmail dot com @ 2010-03-10  6:12 UTC (permalink / raw)
  To: glibc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1861 bytes --]

Hi,
When I use a 64bit mode to compile nearbyintf(float), it will get wrong result 
for float number 2886220.75 and 3058792.75
I think this is a bug for /lib64/tls/libm.so.6


===the result...
nearbyintf(2886220.660000)      ==> 2886220.000000
nearbyintf(2886220.690000)      ==> 2886220.000000
nearbyintf(2886220.720000)      ==> 2886220.000000
nearbyintf(2886220.750000)      ==> 2886220.000000    //Wrong result...     
nearbyintf(2886220.780000)      ==> 2886220.000000
nearbyintf(2886220.810000)      ==> 2886220.000000
nearbyintf(2886220.840000)      ==> 2886220.000000
nearbyintf(2886220.870000)      ==> 2886220.000000
nearbyintf(2886220.900000)      ==> 2886221.000000
nearbyintf(2886220.930000)      ==> 2886221.000000
nearbyintf(2886220.960000)      ==> 2886221.000000

==Env========================================================
Linux oshcsc7b5 2.6.9-78.ELsmp #1 SMP Wed Jul 9 15:46:26 EDT 2008 x86_64 unknown 
unknown GNU/Linux
Reading specs from /tool/pandora64/.package/gcc-4.2.2/lib/gcc/x86_64-unknown-
linux-gnu/4.2.2/specs
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/tool/pandora64/.package/gcc-4.2.2
Thread model: posix
gcc version 4.2.2

-- 
           Summary: nearbyintf(float) does not get correct result for
                    2886220.75 and 3058792.75
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: xcr dot code at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=11365

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-06-30 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11365-131@http.sourceware.org/bugzilla/>
2012-02-22 13:13 ` [Bug math/11365] nearbyintf(float) does not get correct result for 2886220.75 and 3058792.75 jsm28 at gcc dot gnu.org
2014-06-30 18:31 ` fweimer at redhat dot com
2010-03-10  6:12 [Bug libc/11365] New: " xcr dot code at gmail dot com
2010-06-01  3:56 ` [Bug math/11365] " pasky at suse dot cz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).