8000 BUG: Restore support for i686 and PowerPC (OS X) · numpy/numpy@9d36e08 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9d36e08

Browse files
evanmillercharris
authored andcommitted
BUG: Restore support for i686 and PowerPC (OS X)
Downstream report: https://trac.macports.org/ticket/64019
1 parent 150c123 commit 9d36e08

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

numpy/core/include/numpy/numpyconfig.h

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,18 @@
2323
#undef NPY_SIZEOF_LONGDOUBLE
2424
#undef NPY_SIZEOF_COMPLEX_LONGDOUBLE
2525

26-
#ifdef __x86_64
27-
#define NPY_SIZEOF_LONGDOUBLE 16
28-
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
29-
#elif defined(__arm64__)
26+
#if defined(__arm64__)
3027
#define NPY_SIZEOF_LONGDOUBLE 8
3128
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16
29+
#elif defined(__x86_64)
30+
#define NPY_SIZEOF_LONGDOUBLE 16
31+
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
32+
#elif defined (__i386)
33+
#define NPY_SIZEOF_LONGDOUBLE 12
34+
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 24
35+
#elif defined(__ppc__) || defined (__ppc64__)
36+
#define NPY_SIZEOF_LONGDOUBLE 16
37+
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
3238
#else
3339
#error "unknown architecture"
3440
#endif

0 commit comments

Comments
 (0)
0