MCPcopy Create free account
hub / github.com/apache/arrow / HasEfficientBmi2

Function HasEfficientBmi2

cpp/src/arrow/util/cpu_info.h:104–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102 void EnableFeature(int64_t flag, bool enable);
103
104 bool HasEfficientBmi2() const {
105 // BMI2 (pext, pdep) is only efficient on Intel X86 processors.
106 return vendor() == Vendor::Intel && IsSupported(BMI2);
107 }
108
109 private:
110 static constexpr int kCacheLevels = static_cast<int>(CpuInfo::CacheLevel::Last) + 1;

Callers

nothing calls this directly

Calls 1

vendorFunction · 0.85

Tested by

no test coverage detected