Mail Archives: djgpp-workers/2003/03/18/12:37:24
> Date: Tue, 18 Mar 2003 09:09:58 -0600
> From: Eric Rudd <rudd AT cyberoptics DOT com>
>
> The question also came up about which flavors of NaN to recognize. In
> normal FPU computation, the only type of NaN that occurs is the "real
> indefinite" non-signalling NaN, which you get, for instance, by
> computing 0./0. I think that the penalty for recognizing all the
> flavors is that you have to test both upper and lower longwords, rather
> than just the most-significant longword. I decided that the extra
> effort wasn't justified for the libc math routines, since the other NaNs
> aren't supposed to occur anyway, but maybe we want to put the extra code
> into an explicit function like isnan().
Yes, I think `isnan' should support all flavors of NaNs, especially if
we add to `strtod' and friends the ability to produce a NaN with a
specific bit pattern.
- Raw text -