On Sun, Jul 16, 2006 at 12:49:27PM +0100, Ron Blaschke wrote:

> On Win32 the implementation is simple because the IEEE recommended
> functions _finite and _isnan are supported.  I'm thinking about adding a
> test for these functions and use them.  But what should happen if they
> are not there?

nan == nan isn't true, so that ought to be a portable test for a NaN
(although Intel's compiler's default optimisation setting is buggy in this
respect)

I don't know of a good way to test for inf.

Nicholas Clark

Reply via email to