diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/SConscript | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index d9d6c7b9d..71cee7023 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -1,4 +1,4 @@ -# Last Change: Fri Oct 03 03:00 PM 2008 J +# Last Change: Fri Oct 03 04:00 PM 2008 J # vim:syntax=python import os import sys @@ -145,6 +145,9 @@ if not config.CheckFuncsAtOnce(mandatory_funcs): raise SystemError("One of the required function to build numpy is not" " available (the list is %s)." % str(mandatory_funcs)) +# Standard functions which may not be available and for which we have a +# replacement implementation +# def check_funcs(funcs): # Use check_funcs_once first, and if it does not work, test func per # func. Return success only if all the functions are available @@ -161,6 +164,16 @@ optional_stdfuncs = ["expm1", "log1p", "acosh", "asinh", "atanh", check_funcs(optional_stdfuncs) +# C99 functions: float and long double versions +c99_funcs = ["sin", "cos", "tan", "sinh", "cosh", "tanh", "fabs", "floor", + "ceil", "rint", "trunc", "sqrt", "log10", "log", "exp", + "expm1", "asin", "acos", "atan", "asinh", "acosh", "atanh", + "hypot", "atan2", "pow", "fmod", "modf", 'frexp', 'ldexp'] + +for prec in ['l', 'f']: + fns = [f + prec for f in c99_funcs] + check_funcs(fns) + def check_func(f): """Check that f is available in mlib, and add the symbol appropriately. """ st = config.CheckDeclaration(f, language = 'C', includes = "#include <math.h>") |