diff options
author | serge-sans-paille <serge.guelton@telecom-bretagne.eu> | 2022-04-29 11:53:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-29 13:53:23 +0200 |
commit | 91a3e3a500aa121cf53223b1cc75adb46979bb15 (patch) | |
tree | f701d4838f6dd0e2146d38035ed300f7c48c424a /numpy/core/setup.py | |
parent | 0eaa40db3a2f6bef26c0d7cc28eacf4f6d461917 (diff) | |
download | numpy-91a3e3a500aa121cf53223b1cc75adb46979bb15.tar.gz |
MAINT: Translate ieee754.c.src to C++ using templates. (#21367)
* [Road to C++] Rename ieee754.c.src into ieee754.cpp.src
* [Road to C++] Remove all use of internal template engine
Replace them by regular C++ templates.
* [Road to C++] mv ieee754.cpp.src ro ieee754.cpp
Clang-format it, and update build system accordingly.
* Fix 'unnecessary parentheses in declaration of ‘__NPY_UNUSED_TAGGEDc’ [-Wparentheses]'
* [Road to C++] Fix misc conversion issues in ieee754.cpp
- hex float literal are not supported in C++
- avoid overload issues when numpy_longdouble ultimately is equal to double
- _statusfp2 exepcts unsigned arguments
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index f07ab6fa5..6454e641c 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -769,7 +769,7 @@ def configuration(parent_package='',top_path=None): npymath_sources = [join('src', 'npymath', 'npy_math_internal.h.src'), join('src', 'npymath', 'npy_math.c'), - join('src', 'npymath', 'ieee754.c.src'), + join('src', 'npymath', 'ieee754.cpp'), join('src', 'npymath', 'npy_math_complex.c.src'), join('src', 'npymath', 'halffloat.c') ] |