8000 Merge pull request #20476 from charris/backport-20422 · numpy/numpy@0df9501 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0df9501

Browse files
authored
Merge pull request #20476 from charris/backport-20422
BUG: Restore support for i386 and PowerPC (OS X)
2 parents 08154bd + 9d36e08 commit 0df9501

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