block_of_code: Add HostFeature SHA
This commit is contained in:
parent
36f1541347
commit
a4daad6336
2 changed files with 9 additions and 6 deletions
|
@ -114,6 +114,8 @@ HostFeature GetHostFeatures() {
|
|||
features |= HostFeature::FMA;
|
||||
if (cpu_info.has(Cpu::tAESNI))
|
||||
features |= HostFeature::AES;
|
||||
if (cpu_info.has(Cpu::tSHA))
|
||||
features |= HostFeature::SHA;
|
||||
if (cpu_info.has(Cpu::tPOPCNT))
|
||||
features |= HostFeature::POPCNT;
|
||||
if (cpu_info.has(Cpu::tBMI1))
|
||||
|
|
|
@ -26,14 +26,15 @@ enum class HostFeature : u64 {
|
|||
F16C = 1ULL << 13,
|
||||
FMA = 1ULL << 14,
|
||||
AES = 1ULL << 15,
|
||||
POPCNT = 1ULL << 16,
|
||||
BMI1 = 1ULL << 17,
|
||||
BMI2 = 1ULL << 18,
|
||||
LZCNT = 1ULL << 19,
|
||||
GFNI = 1ULL << 20,
|
||||
SHA = 1ULL << 16,
|
||||
POPCNT = 1ULL << 17,
|
||||
BMI1 = 1ULL << 18,
|
||||
BMI2 = 1ULL << 19,
|
||||
LZCNT = 1ULL << 20,
|
||||
GFNI = 1ULL << 21,
|
||||
|
||||
// Zen-based BMI2
|
||||
FastBMI2 = 1ULL << 21,
|
||||
FastBMI2 = 1ULL << 22,
|
||||
|
||||
// Orthographic AVX512 features on 128 and 256 vectors
|
||||
AVX512_Ortho = AVX512F | AVX512VL,
|
||||
|
|
Loading…
Reference in a new issue