7#include <botan/internal/cpuid_features.h>
9#include <botan/exceptn.h>
42 return "intel_sha512";
49 case Bit::AVX512_CLMUL:
50 return "avx512_clmul";
56 throw Invalid_State(
"CPUFeature invalid bit");
61 if(tok ==
"sse2" || tok ==
"simd") {
63 }
else if(tok ==
"ssse3") {
65 }
else if(tok ==
"aesni" || tok ==
"aes_ni") {
68 }
else if(tok ==
"clmul") {
70 }
else if(tok ==
"avx2") {
72 }
else if(tok ==
"avx512") {
74 }
else if(tok ==
"sha" || tok ==
"intel_sha") {
77 }
else if(tok ==
"intel_sha512") {
79 }
else if(tok ==
"rdtsc") {
81 }
else if(tok ==
"bmi2") {
83 }
else if(tok ==
"adx") {
85 }
else if(tok ==
"gfni") {
87 }
else if(tok ==
"rdrand") {
89 }
else if(tok ==
"rdseed") {
91 }
else if(tok ==
"avx512_aes") {
93 }
else if(tok ==
"avx512_clmul") {
95 }
else if(tok ==
"avx2_vaes" || tok ==
"avx2_aes") {
97 }
else if(tok ==
"avx2_clmul") {
99 }
else if(tok ==
"intel_sm3") {
101 }
else if(tok ==
"intel_sm4") {
static std::optional< CPUFeature > from_string(std::string_view)
std::string to_string() const