aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/cpuid.h
blob: 557590db8d930837d2fc597c26239f08c3295ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* Runtime CPU detection
* (C) 2009 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/

#ifndef BOTAN_CPUID_H__
#define BOTAN_CPUID_H__

#include <botan/types.h>

namespace Botan {

namespace CPUID {

/**
* Return a best guess of the cache line size
*/
u32bit cache_line_size();

/**
* Check if the processor supports RDTSC
*/
bool has_rdtsc();

/**
* Check if the processor supports SSE2
*/
bool has_sse2();

/**
* Check if the processor supports SSSE3
*/
bool has_ssse3();

/**
* Check if the processor supports SSE4.1
*/
bool has_sse41();

/**
* Check if the processor supports SSE4.2
*/
bool has_sse42();

}

}

#endif