Skip to content

Commit 9d4a969

Browse files
committed
revert MSVC x64 __cpuidex part of commit 865e832 -- not really needed.
1 parent 2f23ad9 commit 9d4a969

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/SDL12_compat.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1667,13 +1667,12 @@ SDL_revcpy(void *_dst, const void *_src, size_t len)
16671667
__asm mov c, ecx \
16681668
__asm mov d, edx \
16691669
}
1670-
#elif (defined(_MSC_VER) && defined(_M_X64))
1671-
/* Use __cpuidex instead of __cpuid because ICL does not clear ecx register */
1670+
#elif defined(_MSC_VER) && defined(_M_X64)
16721671
#include <intrin.h>
16731672
#define cpuid(func, a, b, c, d) \
16741673
{ \
16751674
int CPUInfo[4]; \
1676-
__cpuidex(CPUInfo, func, 0); \
1675+
__cpuid(CPUInfo, func); \
16771676
a = CPUInfo[0]; \
16781677
b = CPUInfo[1]; \
16791678
c = CPUInfo[2]; \

0 commit comments

Comments
 (0)