On 5 January 2011 16:59, Alexander Graf <ag...@suse.de> wrote:
>
> On 02.01.2011, at 13:06, Aurelien Jarno wrote:
>
>> Use the new function float32_is_any_nan() instead of
>> float32_is_quiet_nan() || float32_is_signaling_nan().
>>
>> Cc: Alexander Graf <ag...@suse.de>
>> Signed-off-by: Aurelien Jarno <aurel...@aurel32.net>
>
> I frankly have very little knowledge of FP stuff. Is any_nan really equal to 
> quiet_nan || signaling_nan or would it cover more cases?

It is exactly equivalent -- all NaNs are either signalling or quiet.

(If you want to check this you don't need to know anything about floating
point, all three functions are just acting on 32 bit values so you could
in theory identify all the bit patterns they return true or false on...)

-- PMM

Reply via email to