qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] softfloat: export float32_nan and float32_infin


From: Christophe Lyon
Subject: Re: [Qemu-devel] [PATCH] softfloat: export float32_nan and float32_infinity.
Date: Wed, 16 Feb 2011 14:02:00 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7

On 16.02.2011 12:53, Peter Maydell wrote:
> On 14 February 2011 16:47, Christophe Lyon <address@hidden> wrote:
>>
>> These two special values are needed to implement some helper functions, 
>> which return these values in some cases.
> 
> I assume this is for vrecpe, right? I think it would be better
> to post this as part of that patchset; it's easier to see the
> rationale for adding the functions when you also have the
> code that's using them.

Indeed. I'll post the bigger patch.

>>  
>> /*----------------------------------------------------------------------------
>> +| Returns the default NaN.
>> +*----------------------------------------------------------------------------*/
>> +
>> +float32 float32_nan(void)
>> +{
>> +    return float32_default_nan;
>> +}
> 
> Maybe we should just expose float32_default_nan in
> softfloat.h somehow; that would match float32_zero,
> float32_one, etc (ie it would not be a function).
> 
It was my initial intention, but it implies adding a #if defined(TARGET_XXX) 
block in softfloat.h, and I feared this was not desirable.

Thanks.



reply via email to

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