Re: [Qemu-devel] [PATCH v2 01/20] softfloat: fix floatx80 handling of NaN

2011-04-20 Thread Peter Maydell
On 20 April 2011 11:11, Aurelien Jarno wrote: > @@ -624,10 +630,11 @@ static floatx80 commonNaNToFloatx80( commonNaNT a > STATUS_PARAM) >         return z; >     } > > -    if (a.high) > -        z.low = a.high; > -    else > +    if (a.high >> 1) { > +        z.low = LIT64( 0x8000 )

[Qemu-devel] [PATCH v2 01/20] softfloat: fix floatx80 handling of NaN

2011-04-20 Thread Aurelien Jarno
The floatx80 format uses an explicit bit that should be taken into account when converting to and from commonNaN format. When converting to commonNaN, the explicit bit should be removed if it is a 1, and a default NaN should be used if it is 0. When converting from commonNan, the explicit bit sho