diff options
author | Evan Miller <emmiller@gmail.com> | 2021-11-20 19:43:44 -0500 |
---|---|---|
committer | Evan Miller <emmiller@gmail.com> | 2021-11-22 00:20:27 -0500 |
commit | 7ecc4198bb7579fdab10f0378b1afda8681ac48d (patch) | |
tree | b339cf06218dd3fea0a53c50d6eac33b97ed9914 | |
parent | 01073d7ed6e90a382db1532492224b28603081b8 (diff) | |
download | numpy-7ecc4198bb7579fdab10f0378b1afda8681ac48d.tar.gz |
BUG: Restore support for i686 and PowerPC (OS X)
Downstream report: https://trac.macports.org/ticket/64019
-rw-r--r-- | numpy/core/include/numpy/numpyconfig.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/numpy/core/include/numpy/numpyconfig.h b/numpy/core/include/numpy/numpyconfig.h index 4eac083e7..b2e7c458e 100644 --- a/numpy/core/include/numpy/numpyconfig.h +++ b/numpy/core/include/numpy/numpyconfig.h @@ -23,12 +23,18 @@ #undef NPY_SIZEOF_LONGDOUBLE #undef NPY_SIZEOF_COMPLEX_LONGDOUBLE - #ifdef __x86_64 - #define NPY_SIZEOF_LONGDOUBLE 16 - #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32 - #elif defined(__arm64__) + #if defined(__arm64__) #define NPY_SIZEOF_LONGDOUBLE 8 #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16 + #elif defined(__x86_64) + #define NPY_SIZEOF_LONGDOUBLE 16 + #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32 + #elif defined (__i386) + #define NPY_SIZEOF_LONGDOUBLE 12 + #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 24 + #elif defined(__ppc__) || defined (__ppc64__) + #define NPY_SIZEOF_LONGDOUBLE 16 + #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32 #else #error "unknown architecture" #endif |