| 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; |