diff options
author | mattip <matti.picus@gmail.com> | 2022-08-07 22:26:34 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2022-08-21 18:26:10 +0300 |
commit | 9e481adde718e758cd6b9314d43ee6e6d88967c9 (patch) | |
tree | 62594061d47e1efc9374041de7c855b55b7fe949 /numpy/core/setup_common.py | |
parent | e9e8cee18ad6aa0b500a0188e239f260b71dfb78 (diff) | |
download | numpy-9e481adde718e758cd6b9314d43ee6e6d88967c9.tar.gz |
make optional C99 double routines mandatory
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r-- | numpy/core/setup_common.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py index a751acc6f..d618fac69 100644 --- a/numpy/core/setup_common.py +++ b/numpy/core/setup_common.py @@ -124,9 +124,8 @@ MANDATORY_FUNCS = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", "floor", "ceil", "sqrt", "log10", "log", "exp", "asin", "acos", "atan", "fmod", 'modf', 'frexp', 'ldexp'] -# Standard functions which may not be available and for which we have a -# replacement implementation. Note that some of these are C99 functions. -OPTIONAL_STDFUNCS = ["expm1", "log1p", "acosh", "asinh", "atanh", +# Some of these are C99 functions. +MANDATORY_FUNCS += ["expm1", "log1p", "acosh", "asinh", "atanh", "rint", "trunc", "exp2", "log2", "hypot", "atan2", "pow", "copysign", "nextafter", "strtoll", "strtoull", "cbrt"] @@ -227,9 +226,8 @@ OPTIONAL_FUNCTION_ATTRIBUTES_WITH_INTRINSICS = [('__attribute__((target("avx2,fm # variable attributes tested via "int %s a" % attribute OPTIONAL_VARIABLE_ATTRIBUTES = ["__thread", "__declspec(thread)"] -# Subset of OPTIONAL_STDFUNCS which may already have HAVE_* defined by Python.h -OPTIONAL_STDFUNCS_MAYBE = [ - "expm1", "log1p", "acosh", "atanh", "asinh", "hypot", "copysign", +# Subset of OPTIONAL_*_FUNCS which may already have HAVE_* defined by Python.h +OPTIONAL_FUNCS_MAYBE = [ "ftello", "fseeko" ] |