From 2929a833bfdfeacd80900868ca5f187e700a6e8b Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Sat, 11 Jun 2022 22:56:21 +0300 Subject: [PATCH] Change mmx detection --- src/mmx.cc | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/mmx.cc b/src/mmx.cc index d469fd5..fdf467c 100644 --- a/src/mmx.cc +++ b/src/mmx.cc @@ -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