aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/cpuid.cpp
blob: 1bdee787c61cdb477a2ffee50db38d58487cf428 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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());

   printf("AltiVec %d\n", CPUID::has_altivec());
   }