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

Method feature_flags

numpy/distutils/ccompiler_opt.py:1524–1537  ·  view source on GitHub ↗

Return a list of CPU features flags sorted from the lowest to highest interest.

(self, names)

Source from the content-addressed store, hash-verified

1522
1523 @_Cache.me
1524 def feature_flags(self, names):
1525 """
1526 Return a list of CPU features flags sorted from the lowest
1527 to highest interest.
1528 """
1529 names = self.feature_sorted(self.feature_implies_c(names))
1530 flags = []
1531 for n in names:
1532 d = self.feature_supported[n]
1533 f = d.get("flags", [])
1534 if not f or not self.cc_test_flags(f):
1535 continue
1536 flags += f
1537 return self.cc_normalize_flags(flags)
1538
1539 @_Cache.me
1540 def feature_test(self, name, force_flags=None, macros=[]):

Callers 5

feature_testMethod · 0.95
feature_extra_checksMethod · 0.95
__init__Method · 0.80
try_dispatchMethod · 0.80
reportMethod · 0.80

Calls 5

feature_sortedMethod · 0.95
feature_implies_cMethod · 0.95
cc_test_flagsMethod · 0.80
cc_normalize_flagsMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected