UtilsLite
Utilities for C++ programming
Loading...
Searching...
No Matches
Utils_CPU_info.hh
Go to the documentation of this file.
1/*--------------------------------------------------------------------------*\
2 | |
3 | Copyright (C) 2011 |
4 | |
5 | , __ , __ |
6 | /|/ \ /|/ \ |
7 | | __/ _ ,_ | __/ _ ,_ |
8 | | \|/ / | | | | \|/ / | | | |
9 | |(__/|__/ |_/ \_/|/|(__/|__/ |_/ \_/|/ |
10 | /| /| |
11 | \| \| |
12 | |
13 | Enrico Bertolazzi |
14 | Dipartimento di Ingegneria Industriale |
15 | Università degli Studi di Trento |
16 | email: enrico.bertolazzi@unitn.it |
17 | |
18\*--------------------------------------------------------------------------*/
19#pragma once
20
21#ifndef UTILS_CPU_INFO_dot_HH
22#define UTILS_CPU_INFO_dot_HH
23
24#include <string>
25
26namespace Utils {
27
28 #ifndef DOXYGEN_SHOULD_SKIP_THIS
29 using std::string;
30 void cpuId( unsigned long CPUInfo[4], unsigned long l );
31 #endif
32
50 void
52 bool & bMMX,
53 bool & bMMXplus,
54 bool & bSSE,
55 bool & bSSE2,
56 bool & bSSE3,
57 bool & bSSSE3,
58 bool & bSSE41,
59 bool & bSSE42,
60 bool & bSSE4a,
61 bool & bSSE5,
62 bool & b3Dnow,
63 bool & b3DnowExt
64 );
65
66 bool has_MMX();
67 bool has_MMXplus();
68 bool has_SSE();
69 bool has_SSE2();
70 bool has_SSE3();
71 bool has_SSSE3();
72 bool has_SSE41();
73 bool has_SSE42();
74 bool has_SSE4a();
75 bool has_SSE5();
76 bool has_3Dnow();
77 bool has_3DnowExt();
78
82 string cpuInfo();
83}
84
85#endif
Definition SystemUtils.cc:39
bool has_SSE5()
check if CPU support SSE5 instruction set
bool has_SSE2()
check if CPU support SSE2 instruction set
bool has_SSE4a()
check if CPU support SSE4a instruction set
bool has_3Dnow()
check if CPU support 3Dnow instruction set
bool has_MMXplus()
check if CPU support MMXplus instruction set
bool has_SSSE3()
check if CPU support SSSE3 instruction set
bool has_MMX()
check if CPU support MMX instruction set
bool has_SSE41()
check if CPU support SSE41 instruction set
bool has_SSE42()
check if CPU support SSE42 instruction set
bool has_3DnowExt()
check if CPU support 3DnowExt instruction set
void info(bool &bMMX, bool &bMMXplus, bool &bSSE, bool &bSSE2, bool &bSSE3, bool &bSSSE3, bool &bSSE41, bool &bSSE42, bool &bSSE4a, bool &bSSE5, bool &b3Dnow, bool &b3DnowExt)
string cpuInfo()
bool has_SSE3()
check if CPU support SSE3 instruction set
bool has_SSE()
check if CPU support SSE instruction set