From: Daniel Jacobowitz <drow@false.org>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Another MIPS quiet NaN fix
Date: Mon, 24 Sep 2007 11:45:26 -0400 [thread overview]
Message-ID: <20070924154526.GA19061@caradoc.them.org> (raw)
In-Reply-To: <jesl5440qu.fsf@sykes.suse.de>
On Mon, Sep 24, 2007 at 04:05:45PM +0200, Andreas Schwab wrote:
> Daniel Jacobowitz <drow@false.org> writes:
>
> > Glibc's test-float failed on my qemu testing. I tracked it down to
> > these routines: if you count the bits carefully, you'll see that
> > 0x7FC00000 sets the quiet NaN bit (on most hardware - signalling NaN
> > in the MIPS case); so does a.high >> 41, which copies it from the
> > original NaN. I think this routine should not force a quiet or
> > signalling NaN, but just preserve the input NaN's signalling-ness.
>
> You may need to make sure that at least one mantissa bit is set.
I think - but am not quite sure - that this will already be the case
because the NaN will have come from some other NaN representation.
Good point, though - we can easily set the next bit, as long as we
don't fiddle with the signalling bit.
--
Daniel Jacobowitz
CodeSourcery
prev parent reply other threads:[~2007-09-24 15:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-24 13:37 [Qemu-devel] Another MIPS quiet NaN fix Daniel Jacobowitz
2007-09-24 14:05 ` Andreas Schwab
2007-09-24 15:45 ` Daniel Jacobowitz [this message]
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=20070924154526.GA19061@caradoc.them.org \
--to=drow@false.org \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.