[Numpy-svn] r5850 - branches/clean_math_config/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Sat Sep 20 11:13:04 CDT 2008


Author: cdavid
Date: 2008-09-20 11:12:59 -0500 (Sat, 20 Sep 2008)
New Revision: 5850

Modified:
   branches/clean_math_config/numpy/core/src/math_c99.inc.src
Log:
Autoconf suggestion is totally bogus: isinf(nan) is false, not true.

Modified: branches/clean_math_config/numpy/core/src/math_c99.inc.src
===================================================================
--- branches/clean_math_config/numpy/core/src/math_c99.inc.src	2008-09-20 16:11:51 UTC (rev 5849)
+++ branches/clean_math_config/numpy/core/src/math_c99.inc.src	2008-09-20 16:12:59 UTC (rev 5850)
@@ -139,8 +139,8 @@
     # define isnan(x) ((x) != (x))
 #endif
 
-#if !defined(HAVE_DECL_ISINF)
-    # define isinf(x) isnan((x) - (x))
+#if !defined(HAVE_DECL_ISFINITE)
+    # define isfinite(x) !isnan((x) - (x))
 #endif
 
 /* Define isfinie if needed */



More information about the Numpy-svn mailing list