Skip to content

Commit

Permalink
[FIX] Fix cpuid for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rlagneau committed Jun 6, 2024
1 parent 0a1c681 commit 883785c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/core/src/tools/cpu-features/x86/cpu_x86_Windows.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@ unsigned __int64 _xgetbv(unsigned int index)
}
#endif
#if defined(__MINGW32__)
void __cpuidex(int CPUInfo[4], int function_id, int subfunction_id)
void __cpuidex(uint CPUInfo[4], uint function_id, uint subfunction_id)
{
__asm__ __volatile__(
"cpuid"
: "=a" (CPUInfo[0]), "=b" (CPUInfo[1]), "=c" (CPUInfo[2]), "=d" (CPUInfo[3])
: "a" (function_id), "c" (subfunction_id));
}
#endif
void cpu_x86::cpuid(int32_t out[4], int32_t x)
void cpu_x86::cpuid(uint32_t out[4], uint32_t x)
{
__cpuidex(out, x, 0);
__cpuidex(out, x, 0U);
}
__int64 xgetbv(unsigned int x)
{
Expand Down

0 comments on commit 883785c

Please sign in to comment.