qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [6050] fp: add floatXX_is_infinity(), floatXX_is_neg(),


From: Laurent Desnogues
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

On Mon, Dec 15, 2008 at 6:14 PM, Aurelien Jarno <address@hidden> 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 <address@hidden>
[...]
> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]