[Numpy-svn] r3923 - trunk/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Sat Jul 28 07:16:39 CDT 2007


Author: pearu
Date: 2007-07-28 07:16:34 -0500 (Sat, 28 Jul 2007)
New Revision: 3923

Modified:
   trunk/numpy/core/src/umathmodule.c.src
Log:
Defining fabsf, hypotf, rintf when DISTUTILS_USE_SDK.

Modified: trunk/numpy/core/src/umathmodule.c.src
===================================================================
--- trunk/numpy/core/src/umathmodule.c.src	2007-07-28 12:02:52 UTC (rev 3922)
+++ trunk/numpy/core/src/umathmodule.c.src	2007-07-28 12:16:34 UTC (rev 3923)
@@ -21,6 +21,32 @@
 #endif
 
 
+#if defined(DISTUTILS_USE_SDK)
+/* win32 on AMD64 build architecture */
+/* See also http://projects.scipy.org/scipy/numpy/ticket/164 */
+#ifndef HAVE_FABSF
+#ifdef fabsf
+#undef fabsf
+#endif
+static float fabsf(float x)
+{
+       return (float)fabs((double)(x));
+}
+#endif
+#ifndef HAVE_HYPOTF
+static float hypotf(float x, float y)
+{
+  return (float)hypot((float)(x), (float)(y));
+}
+#endif
+#ifndef HAVE_RINTF
+static float rintf(float x)
+{
+       return (float)rint((double) x);
+}
+#endif
+#endif
+
 #ifndef HAVE_INVERSE_HYPERBOLIC
 static double acosh(double x)
 {



More information about the Numpy-svn mailing list