File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 23
23
#undef NPY_SIZEOF_LONGDOUBLE
24
24
#undef NPY_SIZEOF_COMPLEX_LONGDOUBLE
25
25
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__ )
30
27
#define NPY_SIZEOF_LONGDOUBLE 8
31
28
#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
32
38
#else
33
39
#error "unknown architecture"
34
40
#endif
You can’t perform that action at this time.
0 commit comments