Subject: bug#9612: sort: avoid a NaN-induced infloop

From: Andreas Schwab <[email-masked]>
Date: Tue, 27 Sep 2011 23:41:05 +0200

Paul Eggert <[email-masked]> writes:

> On 09/27/11 13:07, Andreas Schwab wrote:
>> Padding bits can change any time.
>
> Is there any way to compare the non-padding parts of long doubles?

By ignoring the padding.

> There ought to be *some* way to get the fractional part of a NaN, no?

You need to inspect the bytes of the representation yourself.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."