[Numpy-svn] r8236 - trunk/numpy/core/include/numpy

numpy-svn@scip... numpy-svn@scip...
Sun Feb 21 05:36:36 CST 2010


Author: cdavid
Date: 2010-02-21 05:36:36 -0600 (Sun, 21 Feb 2010)
New Revision: 8236

Modified:
   trunk/numpy/core/include/numpy/npy_cpu.h
Log:
BUG: fix ppc detection macro on AIX.

Modified: trunk/numpy/core/include/numpy/npy_cpu.h
===================================================================
--- trunk/numpy/core/include/numpy/npy_cpu.h	2010-02-21 11:24:45 UTC (rev 8235)
+++ trunk/numpy/core/include/numpy/npy_cpu.h	2010-02-21 11:36:36 UTC (rev 8236)
@@ -32,10 +32,11 @@
      * _M_AMD64 defined by MS compiler
      */
     #define NPY_CPU_AMD64
-#elif defined(__ppc__) || defined(__powerpc__)
+#elif defined(__ppc__) || defined(__powerpc__) || defined(_ARCH_PPC)
     /*
      * __ppc__ is defined by gcc, I remember having seen __powerpc__ once,
      * but can't find it ATM
+     * _ARCH_PPC is used by at least gcc on AIX
      */
     #define NPY_CPU_PPC
 #elif defined(__ppc64__)



More information about the Numpy-svn mailing list