diff options
author | mattip <matti.picus@gmail.com> | 2022-08-15 23:49:54 +0300 |
---|---|---|
committer | mattip <matti.picus@gmail.com> | 2022-08-21 18:26:10 +0300 |
commit | 2c4cc10b8076f00419a2f7bd3042b2400fd73e6f (patch) | |
tree | d2fcdcf8f8fd06d31b02d8466a6b1e47b53c5a57 /numpy/core/setup_common.py | |
parent | 759e0cdbc2642211ad2f0adce3ef247428a1e3b3 (diff) | |
download | numpy-2c4cc10b8076f00419a2f7bd3042b2400fd73e6f.tar.gz |
restore atan2 implementation, clean up c99 mandatory functions
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r-- | numpy/core/setup_common.py | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py index 9e3b91c7f..d246db8e0 100644 --- a/numpy/core/setup_common.py +++ b/numpy/core/setup_common.py @@ -120,20 +120,28 @@ for file in [ set_sig(line) # Mandatory functions: if not found, fail the build -MANDATORY_FUNCS = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", - "floor", "ceil", "sqrt", "log10", "log", "exp", "asin", - "acos", "atan", "fmod", 'modf', 'frexp', 'ldexp', - "expm1", "log1p", "acosh", "asinh", "atanh", - "rint", "trunc", "exp2", "atan2", - "copysign", "nextafter", "strtoll", "strtoull", "cbrt"] +MANDATORY_FUNCS = [ + "sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", + "floor", "ceil", "sqrt", "log10", "log", "exp", "asin", + "acos", "atan", "fmod", 'modf', 'frexp', 'ldexp', + "expm1", "log1p", "acosh", "asinh", "atanh", + "rint", "trunc", "exp2", + "copysign", "nextafter", "strtoll", "strtoull", "cbrt", + # C99, mandatory + "sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", "floor", "ceil", + "rint", "trunc", "sqrt", "log10", "log", "log1p", "exp", "expm1", + "asin", "acos", "atan", "asinh", "acosh", "atanh", +] OPTIONAL_STDFUNCS = [ - # cygwin - "log2", - # macos for powl - "pow", - # 32-bit windows - "hypot" + # cygwin + "log2", + # macos for powl + "pow", + # 32-bit windows + "hypot", + # 32-bit mingw, visual studio 2015 + "atan2", ] OPTIONAL_LOCALE_FUNCS = ["strtold_l"] @@ -238,16 +246,6 @@ OPTIONAL_FUNCS_MAYBE = [ "ftello", "fseeko" ] -# C99 functions: float and long double versions -C99_FUNCS = [ - "sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", "floor", "ceil", - "rint", "trunc", "sqrt", "log10", "log", "log1p", "exp", "expm1", - "asin", "acos", "atan", "asinh", "acosh", "atanh", "hypot", "atan2", - "pow", "fmod", "modf", 'frexp', 'ldexp', "exp2", "log2", "copysign", - "nextafter", "cbrt" - ] -C99_FUNCS_SINGLE = [f + 'f' for f in C99_FUNCS] -C99_FUNCS_EXTENDED = [f + 'l' for f in C99_FUNCS] C99_COMPLEX_TYPES = [ 'complex double', 'complex float', 'complex long double' ] |