Go to the source code of this file.
|
static __inline unsigned int | __get_cpuid_max (unsigned int __ext, unsigned int *__sig) |
|
static __inline int | __get_cpuid (unsigned int __level, unsigned int *__eax, unsigned int *__ebx, unsigned int *__ecx, unsigned int *__edx) |
|
#define __cpuid |
( |
|
level, |
|
|
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| |
#define __cpuid_count |
( |
|
level, |
|
|
|
count, |
|
|
|
a, |
|
|
|
b, |
|
|
|
c, |
|
|
|
d |
|
) |
| |
Value:__asm__ ("cpuid\n\t" \
: "=a" (a), "=b" (b), "=c" (c), "=d" (d) \
: "0" (level), "2" (count))
#define bit_3DNOW (1 << 31) |
#define bit_3DNOWP (1 << 30) |
#define bit_AES (1 << 25) |
#define bit_AVX (1 << 28) |
#define bit_CMOV (1 << 15) |
#define bit_CMPXCHG16B (1 << 13) |
#define bit_CMPXCHG8B (1 << 8) |
#define bit_F16C (1 << 29) |
#define bit_FMA (1 << 12) |
#define bit_FMA4 (1 << 16) |
#define bit_FSGSBASE (1 << 0) |
#define bit_FXSAVE (1 << 24) |
#define bit_LAHF_LM (1 << 0) |
#define bit_LWP (1 << 15) |
#define bit_MMX (1 << 23) |
#define bit_MMXEXT (1 << 22) |
#define bit_MOVBE (1 << 22) |
#define bit_OSXSAVE (1 << 27) |
#define bit_PCLMUL (1 << 1) |
#define bit_POPCNT (1 << 23) |
#define bit_RDRND (1 << 30) |
#define bit_SSE (1 << 25) |
#define bit_SSE2 (1 << 26) |
#define bit_SSE3 (1 << 0) |
#define bit_SSE4_1 (1 << 19) |
#define bit_SSE4_2 (1 << 20) |
#define bit_SSE4a (1 << 6) |
#define bit_SSSE3 (1 << 9) |
#define bit_TBM (1 << 21) |
#define bit_XOP (1 << 11) |
#define bit_XSAVE (1 << 26) |
static __inline int __get_cpuid |
( |
unsigned int |
__level, |
|
|
unsigned int * |
__eax, |
|
|
unsigned int * |
__ebx, |
|
|
unsigned int * |
__ecx, |
|
|
unsigned int * |
__edx |
|
) |
| |
|
static |
static __inline unsigned int __get_cpuid_max |
( |
unsigned int |
__ext, |
|
|
unsigned int * |
__sig |
|
) |
| |
|
static |