[Numpy-svn] r8631 - branches/1.5.x/numpy/core/src/private

numpy-svn@scip... numpy-svn@scip...
Sat Aug 14 08:57:42 CDT 2010


Author: rgommers
Date: 2010-08-14 08:57:42 -0500 (Sat, 14 Aug 2010)
New Revision: 8631

Modified:
   branches/1.5.x/numpy/core/src/private/npy_config.h
Log:
BUG: (backport of r8625) 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: branches/1.5.x/numpy/core/src/private/npy_config.h
===================================================================
--- branches/1.5.x/numpy/core/src/private/npy_config.h	2010-08-14 13:57:21 UTC (rev 8630)
+++ branches/1.5.x/numpy/core/src/private/npy_config.h	2010-08-14 13:57:42 UTC (rev 8631)
@@ -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