This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11365] New: nearbyintf(float) does not get correct result for 2886220.75 and 3058792.75
- From: "xcr dot code at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 10 Mar 2010 06:12:21 -0000
- Subject: [Bug libc/11365] New: nearbyintf(float) does not get correct result for 2886220.75 and 3058792.75
- Reply-to: sourceware-bugzilla at sourceware dot org
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.