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

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


Author: cdavid
Date: 2008-09-20 11:13:48 -0500 (Sat, 20 Sep 2008)
New Revision: 5851

Modified:
   branches/clean_math_config/numpy/core/src/math_c99.inc.src
Log:
Define isfinite first, and define isinf in function of isfinite/isnan.

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:12:59 UTC (rev 5850)
+++ branches/clean_math_config/numpy/core/src/math_c99.inc.src	2008-09-20 16:13:48 UTC (rev 5851)
@@ -143,9 +143,8 @@
     # define isfinite(x) !isnan((x) - (x))
 #endif
 
-/* Define isfinie if needed */
-#if !defined(HAVE_DECL_ISFINITE)
-#define isfinite(x) (!isinf(x) && !isnan(x))
+#if !defined(HAVE_DECL_ISINF)
+#define isinf(x) (!isfinite(x) && !isnan(x))
 #endif
 
 #if !defined(HAVE_DECL_SIGNBIT)



More information about the Numpy-svn mailing list