summaryrefslogtreecommitdiff
path: root/numpy/core/setup.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-06-23 06:14:04 -0700
committerCharles Harris <charlesr.harris@gmail.com>2013-06-23 06:14:04 -0700
commitf361c6b073316f3ee59ac23413155145b27aed90 (patch)
tree6422a8aa8c6a12e59248a437eea1215196006e87 /numpy/core/setup.py
parent6dd20ff5fa5b937b86fa4a1404ceeabafceaa589 (diff)
parent75df68b5ca238eabc2de144dce08d481c59ffcaf (diff)
downloadnumpy-f361c6b073316f3ee59ac23413155145b27aed90.tar.gz
Merge pull request #3429 from juliantaylor/copy-unroll
ENH: tell gcc to unroll strided copy loops
Diffstat (limited to 'numpy/core/setup.py')
-rw-r--r--numpy/core/setup.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py
index 926142b55..b48414c2d 100644
--- a/numpy/core/setup.py
+++ b/numpy/core/setup.py
@@ -161,7 +161,6 @@ def check_math_capabilities(config, moredefs, mathlibs):
check_funcs(OPTIONAL_STDFUNCS)
-
for h in OPTIONAL_HEADERS:
if config.check_func("", decl=False, call=False, headers=[h]):
moredefs.append((fname2def(h).replace(".", "_"), 1))
@@ -170,6 +169,12 @@ def check_math_capabilities(config, moredefs, mathlibs):
if config.check_func(f, decl=False, call=True, call_args=args):
moredefs.append((fname2def(f), 1))
+ for dec, fn in OPTIONAL_GCC_ATTRIBUTES:
+ if config.check_funcs_once([fn],
+ decl=dict((('%s %s' % (dec, fn), True),)),
+ call=False):
+ moredefs.append((fname2def(fn), 1))
+
# C99 functions: float and long double versions
check_funcs(C99_FUNCS_SINGLE)
check_funcs(C99_FUNCS_EXTENDED)