aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/cpuid.cpp
blob: 59940b5000f4e2851641093355ae9fd7dc56479e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>

#include <botan/cpuid.h>

using namespace Botan;

int main()
   {
   printf("Cache line size: %d\n", CPUID::cache_line_size());
   printf("RDTSC: %d\n", CPUID::has_rdtsc());
   printf("SSE2 %d\n", CPUID::has_sse2());
   printf("SSSE3 %d\n", CPUID::has_ssse3());
   printf("SSE41 %d\n", CPUID::has_sse41());
   printf("SSE42 %d\n", CPUID::has_sse42());
   }