public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rsa at us dot ibm dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sources.redhat.com
Subject: [Bug math/4997] lround(nexafter(0.5,-1)) has incorrect value
Date: Fri, 09 Nov 2007 19:41:00 -0000	[thread overview]
Message-ID: <20071109194112.23469.qmail@sourceware.org> (raw)
In-Reply-To: <20070906173748.4997.fxcoudert@gcc.gnu.org>


------- Additional Comments From rsa at us dot ibm dot com  2007-11-09 19:41 -------
Buggy llround output to be used for baseline for a fix:

Expect  4503599627370496: Got   004503599627370496 = llround(2^52
[0x1.0000000000000p+52] {4503599627370496.0000000000000000})
Expect 4503599627370497 : Got 4503599627370498 = llround(2^52+1
[0x1.0000000000001p+52] {4503599627370497.0})
Expect 4503599627370498 : Got 4503599627370498 = llround(2^52+2
[0x1.0000000000002p+52] {4503599627370498.0})
Expect 4503599627370499 : Got 4503599627370500 = llround(2^52+3
[0x1.0000000000003p+52] {4503599627370499.0})
Expect 9007199254740991: Got 9007199254740992 = llround(2^52
[0x1.fffffffffffffp+52] {9007199254740991.0})
Expect 9007199254740992: Got 9007199254740992 = llround(2^52
[0x1.0000000000000p+53] {9007199254740992.0})

I have a fix for these cases that I'm trying out.

-- 


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.


  parent reply	other threads:[~2007-11-09 19:41 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-06 17:38 [Bug math/4997] New: " fxcoudert at gcc dot gnu dot org
2007-09-14 12:36 ` [Bug math/4997] " fxcoudert at gcc dot gnu dot org
2007-09-14 13:54 ` fxcoudert at gcc dot gnu dot org
2007-10-22 22:52 ` rsa at us dot ibm dot com
2007-11-01 22:14 ` rsa at us dot ibm dot com
2007-11-08 18:53 ` rsa at us dot ibm dot com
2007-11-08 18:55 ` fxcoudert at gcc dot gnu dot org
2007-11-09 13:45 ` rsa at us dot ibm dot com
2007-11-09 19:41 ` rsa at us dot ibm dot com [this message]
2007-11-09 22:30 ` rsa at us dot ibm dot com
2007-11-20 21:46 ` rsa at us dot ibm dot com
2007-11-20 21:50 ` rsa at us dot ibm dot com
2007-11-29 16:01 ` rsa at us dot ibm dot com
2007-11-29 21:00 ` rsa at us dot ibm dot com
2008-04-10  5:51 ` drepper at redhat dot com
2008-04-11 15:56 ` rsa at us dot ibm dot com
2008-04-11 19:34 ` drepper at redhat dot com

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=20071109194112.23469.qmail@sourceware.org \
    --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).