diff options
author | njsmith <njs@pobox.com> | 2013-05-15 08:33:55 -0700 |
---|---|---|
committer | njsmith <njs@pobox.com> | 2013-05-15 08:33:55 -0700 |
commit | 0337cf2f8cf555912dd39a2767a0f7f9e6398257 (patch) | |
tree | f53b34d668646448ec0c8f44a84bdd24c1e1212d /numpy/core/setup.py | |
parent | c546a22219a26dd045281dc1e2708c62d949f33e (diff) | |
parent | ecdad497085880e18026e88d3f06c5a0feab2f39 (diff) | |
download | numpy-0337cf2f8cf555912dd39a2767a0f7f9e6398257.tar.gz |
Merge pull request #3308 from juliantaylor/optimize-isnan
ENH: use intrinsics for isnan, isfinite and isinf
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r-- | numpy/core/setup.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 437f75c7b..5a1e6cf6e 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -161,6 +161,10 @@ def check_math_capabilities(config, moredefs, mathlibs): check_funcs(OPTIONAL_STDFUNCS) + for f, args in OPTIONAL_INTRINSICS: + if config.check_func(f, decl=False, call=True, call_args=args): + moredefs.append((fname2def(f), 1)) + # C99 functions: float and long double versions check_funcs(C99_FUNCS_SINGLE) check_funcs(C99_FUNCS_EXTENDED) @@ -602,6 +606,8 @@ def configuration(parent_package='',top_path=None): config.add_include_dirs(join('src', 'umath')) config.add_include_dirs(join('src', 'npysort')) + config.add_define_macros([("HAVE_NPY_CONFIG_H", "1")]) + config.numpy_include_dirs.extend(config.paths('include')) deps = [join('src','npymath','_signbit.c'), |