mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
fix CpuId when compiling with clang on windows
This commit is contained in:
parent
93b4ea2ace
commit
90adf00dc1
@ -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