mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 07:24:36 +00:00
Merge pull request #836 from Techatrix/fix-windows-clang
fix CpuId when compiling with clang on windows
This commit is contained in:
commit
f81e089260
@ -308,7 +308,7 @@ struct ThreadHandleWrapper
|
|||||||
static inline void CpuId( uint32_t* regs, uint32_t leaf )
|
static inline void CpuId( uint32_t* regs, uint32_t leaf )
|
||||||
{
|
{
|
||||||
memset(regs, 0, sizeof(uint32_t) * 4);
|
memset(regs, 0, sizeof(uint32_t) * 4);
|
||||||
#if defined _WIN32
|
#if defined _MSC_VER
|
||||||
__cpuidex( (int*)regs, leaf, 0 );
|
__cpuidex( (int*)regs, leaf, 0 );
|
||||||
#else
|
#else
|
||||||
__get_cpuid( leaf, regs, regs+1, regs+2, regs+3 );
|
__get_cpuid( leaf, regs, regs+1, regs+2, regs+3 );
|
||||||
|
Loading…
Reference in New Issue
Block a user