[Numpy-svn] r6419 - branches/coremath/numpy/core/include/numpy

numpy-svn@scip... numpy-svn@scip...
Thu Feb 19 08:41:36 CST 2009


Author: cdavid
Date: 2009-02-19 08:40:16 -0600 (Thu, 19 Feb 2009)
New Revision: 6419

Modified:
   branches/coremath/numpy/core/include/numpy/npy_math.h
Log:
Fix npy_signbit when signbit is not available: I forgot to declare the implementation functions... stupidest thing ever.

Modified: branches/coremath/numpy/core/include/numpy/npy_math.h
===================================================================
--- branches/coremath/numpy/core/include/numpy/npy_math.h	2009-02-19 11:46:09 UTC (rev 6418)
+++ branches/coremath/numpy/core/include/numpy/npy_math.h	2009-02-19 14:40:16 UTC (rev 6419)
@@ -60,13 +60,16 @@
         #define npy_isfinite(x) isfinite((x))
 #endif
 
-#ifndef NPY_HAVE_DECL_ISFINITE
+#ifndef NPY_HAVE_DECL_ISINF
         #define npy_isinf(x) (!npy_isfinite(x) && !npy_isnan(x))
 #else
         #define npy_isinf(x) isinf((x))
 #endif
 
 #ifndef NPY_HAVE_DECL_SIGNBIT
+	int _npy_signbit_f(float x);
+	int _npy_signbit(double x);
+	int _npy_signbit_ld(npy_longdouble x);
         #define npy_signbit(x) \
               (sizeof (x) == sizeof (long double) ? _npy_signbit_ld (x) \
                : sizeof (x) == sizeof (double) ? _npy_signbit_d (x) \



More information about the Numpy-svn mailing list