[Numpy-svn] r6189 - branches/dynamic_cpu_configuration/numpy/core/src

numpy-svn@scip... numpy-svn@scip...
Mon Dec 22 21:51:44 CST 2008


Author: cdavid
Date: 2008-12-22 21:51:39 -0600 (Mon, 22 Dec 2008)
New Revision: 6189

Modified:
   branches/dynamic_cpu_configuration/numpy/core/src/_signbit.c
Log:
Do not use WORDS_BIGENDIAN anymore in numpy, use NPY_BIG_ENDIAN instead.

Modified: branches/dynamic_cpu_configuration/numpy/core/src/_signbit.c
===================================================================
--- branches/dynamic_cpu_configuration/numpy/core/src/_signbit.c	2008-12-22 13:23:03 UTC (rev 6188)
+++ branches/dynamic_cpu_configuration/numpy/core/src/_signbit.c	2008-12-23 03:51:39 UTC (rev 6189)
@@ -14,7 +14,7 @@
 
 #if SIZEOF_INT == 4
 
-#ifdef WORDS_BIGENDIAN /* defined in pyconfig.h */
+#ifdef NPY_BIG_ENDIAN
     return u.i[0] < 0;
 #else
     return u.i[1] < 0;
@@ -22,7 +22,7 @@
 
 #else  /* SIZEOF_INT != 4 */
 
-#ifdef WORDS_BIGENDIAN
+#ifdef NPY_BIG_ENDIAN
     return u.s[0] < 0;
 #else
     return u.s[3] < 0;



More information about the Numpy-svn mailing list