[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat |
Date: |
Sat, 03 Nov 2007 20:14:53 +0100 |
User-agent: |
IceDove 1.5.0.10 (X11/20070328) |
Daniel Jacobowitz a écrit :
> On Sat, Nov 03, 2007 at 06:35:48PM +0100, Aurelien Jarno wrote:
>> Hi all,
>>
>> The current softfloat implementation changes qNaN into sNaN when
>> converting between formats, for no reason. The attached patch fixes
>> that. It also fixes an off-by-one in the extended double precision
>> format (aka floatx80), the mantissa is 64-bit long and not 63-bit
>> long.
>>
>> With this patch applied all the glibc 2.7 floating point tests
>> are successfull on MIPS and MIPSEL.
>
> FYI, I posted a similar patch and haven't had time to get back to it.
> Andreas reminded me that we need to make sure at least one mantissa
> bit is set. If we're confident that the common NaN format will
> already have some bit other than the qnan/snan bit set, this is fine;
> otherwise, we might want to forcibly set some other mantissa bit.
>
Good point. I will try to improve my patch.
--
.''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
: :' : Debian developer | Electrical Engineer
`. `' address@hidden | address@hidden
`- people.debian.org/~aurel32 | www.aurel32.net
- [Qemu-devel] [PATCH] Fix NaN handling in softfloat, Aurelien Jarno, 2007/11/03
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, Daniel Jacobowitz, 2007/11/03
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat,
Aurelien Jarno <=
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, Aurelien Jarno, 2007/11/03
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, J. Mayer, 2007/11/06
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, Thiemo Seufer, 2007/11/06
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, Aurelien Jarno, 2007/11/07
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, Daniel Jacobowitz, 2007/11/07
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, Thiemo Seufer, 2007/11/07
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, J. Mayer, 2007/11/09
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, Aurelien Jarno, 2007/11/10
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, J. Mayer, 2007/11/10
- Re: [Qemu-devel] [PATCH] Fix NaN handling in softfloat, Aurelien Jarno, 2007/11/10