foobar2000 SDK  2015-08-03
cpuid.h
Go to the documentation of this file.
1 
2 // CPUID stuff supported only on MSVC for now, irrelevant for non x86
3 #if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
4 #define PFC_HAVE_CPUID 1
5 namespace pfc {
6  enum {
7  CPU_HAVE_3DNOW = 1 << 0,
8  CPU_HAVE_3DNOW_EX = 1 << 1,
9  CPU_HAVE_SSE = 1 << 2,
10  CPU_HAVE_SSE2 = 1 << 3,
11  CPU_HAVE_SSE3 = 1 << 4,
12  CPU_HAVE_SSSE3 = 1 << 5,
13  CPU_HAVE_SSE41 = 1 << 6,
14  CPU_HAVE_SSE42 = 1 << 7,
15  };
16 
17  bool query_cpu_feature_set(unsigned p_value);
18 };
19 #endif
20 
21 #ifndef PFC_HAVE_CPUID
22 #define PFC_HAVE_CPUID 0
23 #endif
bool query_cpu_feature_set(unsigned p_value)
Definition: cpuid.cpp:7