Rev 1134 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1134 | Rev 1141 | ||
---|---|---|---|
Line 9... | Line 9... | ||
9 | 9 | ||
10 | static void cpuid(unsigned CpuInfo[4], unsigned _eax) |
10 | static void cpuid(unsigned CpuInfo[4], unsigned _eax) |
11 | { |
11 | { |
12 | #ifdef _MSC_VER |
12 | #ifdef _MSC_VER |
13 | __cpuid((int *)CpuInfo, int(_eax)); |
13 | __cpuid((int *)CpuInfo, int(_eax)); |
14 | #endif |
14 | #endif // _MSC_VER |
15 | 15 | ||
16 | #ifdef __GNUC__ |
16 | #ifdef __GNUC__ |
17 | #ifdef __clang__ |
17 | #ifdef __clang__ |
18 | __cpuid((int *)CpuInfo, _eax); |
18 | __cpuid((int *)CpuInfo, _eax); |
19 | #else |
19 | #else |
- | 20 | #ifdef __cpuid |
|
20 | __cpuid(_eax, CpuInfo[0], CpuInfo[1], CpuInfo[2], CpuInfo[3]); |
21 | __cpuid(_eax, CpuInfo[0], CpuInfo[1], CpuInfo[2], CpuInfo[3]); |
- | 22 | #else // __cpuid |
|
- | 23 | __cpuid((int *)CpuInfo, _eax); |
|
- | 24 | #endif // __cpuid |
|
21 | #endif // __clang__ |
25 | #endif // __clang__ |
22 | #endif |
26 | #endif // __GNUC__ |
23 | } |
27 | } |
24 | 28 | ||
25 | void fillCpuString(char dst[49]) |
29 | void fillCpuString(char dst[49]) |
26 | { |
30 | { |
27 | dst[0] = dst[12] = dst[48] = 0; |
31 | dst[0] = dst[12] = dst[48] = 0; |