summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2022-11-17 21:33:43 +0100
committerRalf Gommers <ralf.gommers@gmail.com>2022-11-17 21:33:43 +0100
commitd4de105d84e2d097916152b6065b6736b795d187 (patch)
tree034524467e38f5a5650804413da09bb6355969fe /numpy
parent9e144f7c1598221510d49d8c6b79c66dc000edf6 (diff)
downloadnumpy-d4de105d84e2d097916152b6065b6736b795d187.tar.gz
MAINT: remove macOS specific long double handling in numpyconfig.h
This was put in place for universal builds (the old kind, PPC/Intel), and then extended for arm64 support. It was only needed when building for two architectures in a single build. We no longer support i386/PPC/universal, and for producing universal2 wheels for those users that want that, the way to do it is to take a x86-64 wheel and an arm64 wheel and fuse those with the `delocate-fuse` utility from `delocate`. Hence this code is no longer needed.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/include/numpy/numpyconfig.h45
1 files changed, 0 insertions, 45 deletions
diff --git a/numpy/core/include/numpy/numpyconfig.h b/numpy/core/include/numpy/numpyconfig.h
index 164fcbdbe..0d6585bb9 100644
--- a/numpy/core/include/numpy/numpyconfig.h
+++ b/numpy/core/include/numpy/numpyconfig.h
@@ -3,51 +3,6 @@
#include "_numpyconfig.h"
-/*
- * On Mac OS X, because there is only one configuration stage for all the archs
- * in universal builds, any macro which depends on the arch needs to be
- * hardcoded
- */
-#ifdef __APPLE__
- #undef NPY_SIZEOF_LONG
- #undef NPY_SIZEOF_PY_INTPTR_T
-
- #ifdef __LP64__
- #define NPY_SIZEOF_LONG 8
- #define NPY_SIZEOF_PY_INTPTR_T 8
- #else
- #define NPY_SIZEOF_LONG 4
- #define NPY_SIZEOF_PY_INTPTR_T 4
- #endif
-
- #undef NPY_SIZEOF_LONGDOUBLE
- #undef NPY_SIZEOF_COMPLEX_LONGDOUBLE
- #ifdef HAVE_LDOUBLE_IEEE_DOUBLE_LE
- #undef HAVE_LDOUBLE_IEEE_DOUBLE_LE
- #endif
- #ifdef HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE
- #undef HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE
- #endif
-
- #if defined(__arm64__)
- #define NPY_SIZEOF_LONGDOUBLE 8
- #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16
- #define HAVE_LDOUBLE_IEEE_DOUBLE_LE 1
- #elif defined(__x86_64)
- #define NPY_SIZEOF_LONGDOUBLE 16
- #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
- #define HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE 1
- #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
-#endif
-
/**
* To help with the NPY_NO_DEPRECATED_API macro, we include API version
* numbers for specific versions of NumPy. To exclude all API that was