qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Laurent Desnogues" <laurent.desnogues@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [6050] fp: add floatXX_is_infinity(), floatXX_is_neg(), floatXX_is_zero()
Date: Thu, 18 Dec 2008 16:15:10 +0100	[thread overview]
Message-ID: <761ea48b0812180715m29b8c3edn1d549b93bcacbd91@mail.gmail.com> (raw)
In-Reply-To: <E1LCH1Q-0002qg-M3@cvs.savannah.gnu.org>

On Mon, Dec 15, 2008 at 6:14 PM, Aurelien Jarno <aurelien@aurel32.net> wrote:
> Revision: 6050
>          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6050
> Author:   aurel32
> Date:     2008-12-15 17:14:20 +0000 (Mon, 15 Dec 2008)
>
> Log Message:
> -----------
> fp: add floatXX_is_infinity(), floatXX_is_neg(), floatXX_is_zero()
>
> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
[...]
> Modified: trunk/fpu/softfloat.h
> ===================================================================
> --- trunk/fpu/softfloat.h       2008-12-15 17:14:12 UTC (rev 6049)
> +++ trunk/fpu/softfloat.h       2008-12-15 17:14:20 UTC (rev 6050)
> @@ -281,6 +281,21 @@
>     return make_float32(float32_val(a) ^ 0x80000000);
>  }
>
> +INLINE int float32_is_infinity(float32 a)
> +{
> +    return (float32_val(a) & 0x7fffffff) == 0x7ff80000;

This should be == 0x7f800000.


Laurent

  parent reply	other threads:[~2008-12-18 15:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-15 17:14 [Qemu-devel] [6050] fp: add floatXX_is_infinity(), floatXX_is_neg(), floatXX_is_zero() Aurelien Jarno
2008-12-15 17:48 ` Andreas Färber
2008-12-15 22:07   ` Aurélien Jarno
2008-12-18 15:15 ` Laurent Desnogues [this message]
2008-12-18 22:54   ` Aurelien Jarno

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=761ea48b0812180715m29b8c3edn1d549b93bcacbd91@mail.gmail.com \
    --to=laurent.desnogues@gmail.com \
    --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 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 NNTP newsgroup(s).