MCPcopy Create free account
hub / github.com/numpy/numpy / check_funcs_once

Function check_funcs_once

numpy/core/setup.py:156–172  ·  view source on GitHub ↗
(
            funcs_name,
            headers=["feature_detection_math.h", "feature_detection_cmath.h"],
            add_to_moredefs=True)

Source from the content-addressed store, hash-verified

154 )
155
156 def check_funcs_once(
157 funcs_name,
158 headers=["feature_detection_math.h", "feature_detection_cmath.h"],
159 add_to_moredefs=True):
160 call = dict([(f, True) for f in funcs_name])
161 call_args = dict([(f, FUNC_CALL_ARGS[f]) for f in funcs_name])
162 st = config.check_funcs_once(
163 funcs_name,
164 libraries=mathlibs,
165 decl=False,
166 call=call,
167 call_args=call_args,
168 headers=headers,
169 )
170 if st and add_to_moredefs:
171 moredefs.extend([(fname2def(f), 1) for f in funcs_name])
172 return st
173
174 def check_funcs(
175 funcs_name,

Callers 2

check_funcsFunction · 0.85
check_math_capabilitiesFunction · 0.85

Calls 2

fname2defFunction · 0.85
check_funcs_onceMethod · 0.80

Tested by

no test coverage detected