Change mmx detection

This commit is contained in:
Alexander Batalov 2022-06-11 22:56:21 +03:00
parent 2f03d653fc
commit 2929a833bf

View File

@ -9,23 +9,7 @@
// 0x4E08A0
bool mmxIsSupported()
{
int v1;
// TODO: There are other ways to determine MMX using FLAGS register.
#ifdef _WIN32
__asm
{
mov eax, 1
cpuid
and edx, 0x800000
mov v1, edx
}
#else
v1 = 0;
#endif
return v1 != 0;
return SDL_HasMMX() == SDL_TRUE;
}
// 0x4E0DB0