diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/examples/cpuid.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/examples/cpuid.cpp b/doc/examples/cpuid.cpp index f4d441ba2..059cfdbc0 100644 --- a/doc/examples/cpuid.cpp +++ b/doc/examples/cpuid.cpp @@ -14,15 +14,17 @@ namespace { void print_if_feature(const std::string& feature_name, bool exists) { if(exists) - std::cout << feature_name << '\n'; + std::cout << "Y: " << feature_name << "\n"; else - std::cout << '[' << feature_name << ']' << '\n'; + std::cout << "N: " << feature_name << "\n"; } } int main() { + CPUID::initialize(); + std::cout << "Cache line size = " << CPUID::cache_line_size() << "\n"; print_if_feature("RDTSC", CPUID::has_rdtsc()); |