diff options
author | William D. Irons <wdirons@us.ibm.com> | 2018-07-02 15:28:52 +0000 |
---|---|---|
committer | William D. Irons <wdirons@us.ibm.com> | 2018-07-02 15:28:52 +0000 |
commit | 3b3a1508889bebe003ce35453ca9657f677b401b (patch) | |
tree | 44387649380b089ef62132bff540c953a41e5059 /numpy/core/arrayprint.py | |
parent | 47d5ff9039860548fd1e840c4045ab54f5e154c9 (diff) | |
download | numpy-3b3a1508889bebe003ce35453ca9657f677b401b.tar.gz |
BUG: Fix #define for ppc64 and ppc64le
The current logic for defining NPY_CPU_PPC64LE and NPY_CPU_PPC64 is
incorrect for two reasons:
1) The elif defined for __powerpc__ is proceesed first so any
ppc64le or ppc64 system is defined as NPY_CPU_PPC.
2) __ppc64le__ is not defined on a ppc64le system. __PPC64__ is
defined and so is __powerpc64__ but the check for little or
big endian needs to be done seperately.
This pull request fixes the defines for ppc64le and ppc64.
Note: This really isn't a issue in the numpy code base at this time
because the only place this variable is referenced is in npy_endian.h
as a fallback in case endian.h is not on the system.
It would be good to fix in case future code does reference
these defines.
Diffstat (limited to 'numpy/core/arrayprint.py')
0 files changed, 0 insertions, 0 deletions