Change mmx detection

This commit is contained in:
Alexander Batalov 2022-06-11 22:56:21 +03:00
parent 2f03d653fc
commit 2929a833bf
1 changed files with 1 additions and 17 deletions

View File

@ -9,23 +9,7 @@
// 0x4E08A0 // 0x4E08A0
bool mmxIsSupported() bool mmxIsSupported()
{ {
int v1; return SDL_HasMMX() == SDL_TRUE;
// 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;
} }
// 0x4E0DB0 // 0x4E0DB0