diff options
author | lloyd <[email protected]> | 2010-07-27 13:29:32 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-07-27 13:29:32 +0000 |
commit | afa1f82524d11574f19a713b16fe2809b4665db4 (patch) | |
tree | 76837831edbca7c02a60e6cfe8469886e03a4c58 /doc/examples/cpuid.cpp | |
parent | 0cbb71fc33ac56c584bdd4574082a974e79d67f1 (diff) |
Add support in CPUID for detecting PCMULUDQ and MOVBE instructions.
Rename CPUID::has_aes_intel to has_aes_ni.
Diffstat (limited to 'doc/examples/cpuid.cpp')
-rw-r--r-- | doc/examples/cpuid.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/examples/cpuid.cpp b/doc/examples/cpuid.cpp index 059cfdbc0..3693257b8 100644 --- a/doc/examples/cpuid.cpp +++ b/doc/examples/cpuid.cpp @@ -13,10 +13,7 @@ namespace { void print_if_feature(const std::string& feature_name, bool exists) { - if(exists) - std::cout << "Y: " << feature_name << "\n"; - else - std::cout << "N: " << feature_name << "\n"; + std::cout << (exists ? '+' : '-') << " " << feature_name << "\n"; } } @@ -34,7 +31,9 @@ int main() print_if_feature("SSE4.2", CPUID::has_sse42()); print_if_feature("AVX", CPUID::has_avx()); - print_if_feature("AES-NI", CPUID::has_aes_intel()); + print_if_feature("MOVBE", CPUID::has_movbe()); + print_if_feature("PCMUL", CPUID::has_pcmuludq()); + print_if_feature("AES-NI", CPUID::has_aes_ni()); print_if_feature("AltiVec", CPUID::has_altivec()); } |