public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "xcr dot code at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug libc/11365] New: nearbyintf(float) does not get correct result for 2886220.75 and 3058792.75
Date: Wed, 10 Mar 2010 06:12:00 -0000	[thread overview]
Message-ID: <20100310061220.11365.xcr.code@gmail.com> (raw)

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


             reply	other threads:[~2010-03-10  6:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-10  6:12 xcr dot code at gmail dot com [this message]
2010-03-11  8:48 ` [Bug libc/11365] " xcr dot code at gmail dot com
2010-06-01  3:56 ` [Bug math/11365] " pasky at suse dot cz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100310061220.11365.xcr.code@gmail.com \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).