| 315 | |
| 316 | #if defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 |
| 317 | static inline void CpuId( uint32_t* regs, uint32_t leaf ) |
| 318 | { |
| 319 | memset(regs, 0, sizeof(uint32_t) * 4); |
| 320 | #if defined _MSC_VER |
| 321 | __cpuidex( (int*)regs, leaf, 0 ); |
| 322 | #else |
| 323 | __get_cpuid( leaf, regs, regs+1, regs+2, regs+3 ); |
| 324 | #endif |
| 325 | } |
| 326 | |
| 327 | static void InitFailure( const char* msg ) |
| 328 | { |
no test coverage detected