Mail Archives: djgpp-workers/2000/03/16/07:20:08
On 16 Mar 00, Eli Zaretskii wrote:
> You seem to assume that the FPU has some way of dealing with these bit
> patterns in a reasonable way. This isn't true: the FPU treats them as
> if they were NaNs; no useful FP result can ever be generated out of
> their use.
One small addition: fldt fstpt leave the bit pattern untouched (here
at least).
> So there's no ``punishment'' here. Quite to the contrary, this is
> IMHO a valuable debugging aid, exactly like "(null)".
And like aborting would be as well.
After searching through the Standard for normalize and after looking
at fpclassify(), it seems to me, that unnormalized numbers are not
allowed. fpclassify() cannot produce a result for them. There is
only one mention of non-normalized (in Annex J), but I think
subnormal (denormal) is meant there.
Perhaps somebody should ask in comp.std.c.
Regards,
Dieter
- Raw text -