[Numpy-svn] r8625 - trunk/numpy/core/src/private

numpy-svn@scip... numpy-svn@scip...
Sat Aug 14 08:43:39 CDT 2010


Author: rgommers
Date: 2010-08-14 08:43:39 -0500 (Sat, 14 Aug 2010)
New Revision: 8625

Modified:
   trunk/numpy/core/src/private/npy_config.h
Log:
BUG: define LDEXPL/FREXPL functions for MSVC builds (see #1499).

Note that this doesn't fix the Solaris issue, so #1499 not closed.
Thanks to Christoph Gohlke.

Modified: trunk/numpy/core/src/private/npy_config.h
===================================================================
--- trunk/numpy/core/src/private/npy_config.h	2010-08-14 13:43:19 UTC (rev 8624)
+++ trunk/numpy/core/src/private/npy_config.h	2010-08-14 13:43:39 UTC (rev 8625)
@@ -9,6 +9,16 @@
 #undef HAVE_HYPOT
 #endif
 
+/* Safe to use ldexp and frexp for long double for MSVC builds */
+#if (SIZEOF_LONG_DOUBLE == SIZEOF_DOUBLE) || defined(_MSC_VER)  
+    #ifdef HAVE_LDEXP
+        #define HAVE_LDEXPL 1
+    #endif
+    #ifdef HAVE_FREXP
+        #define HAVE_FREXPL 1
+    #endif
+#endif
+
 /* Disable broken Sun Workshop Pro math functions */
 #ifdef __SUNPRO_C
 #undef HAVE_ATAN2



More information about the Numpy-svn mailing list