21 Apr
2008
21 Apr
'08
12:03 p.m.
+#if !defined(HAVE_ISINF) && defined(HAVE_IEEEFP_H) +#include <ieeefp.h> +#define isinf(x) (!(finite(x) || isnand(x))) +#endif The problem with macros is that something like isinf(*x++) won't do what you intend. That's why even for such a simple case a function would be better imho. -- Francois Gouget <fgouget(a)free.fr> http://fgouget.free.fr/ Stolen from an Internet user: "f u cn rd ths, u cn gt a gd jb n cmptr prgrmmng !"