blob: bc33ef907ba1c5c6418ab5b60d6cbe95bf5cf5f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#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("AES-NI %d\n", CPUID::has_aes_intel());
printf("AES-VIA %d\n", CPUID::has_aes_via());
printf("AltiVec %d\n", CPUID::has_altivec());
}
|