Merge pull request #836 from Techatrix/fix-windows-clang

fix CpuId when compiling with clang on windows
This commit is contained in:
Bartosz Taudul 2024-07-19 11:03:05 +02:00 committed by GitHub
commit f81e089260
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -308,7 +308,7 @@ struct ThreadHandleWrapper
static inline void CpuId( uint32_t* regs, uint32_t leaf )
{
memset(regs, 0, sizeof(uint32_t) * 4);
#if defined _WIN32
#if defined _MSC_VER
__cpuidex( (int*)regs, leaf, 0 );
#else
__get_cpuid( leaf, regs, regs+1, regs+2, regs+3 );