From e7f6bbf867d7bb6b62c9ab57d7ef02fce72e39f7 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 30 May 2022 00:29:58 +0300 Subject: [PATCH] Wrap mmx probe --- src/mmx.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mmx.cc b/src/mmx.cc index 205bffb..d469fd5 100644 --- a/src/mmx.cc +++ b/src/mmx.cc @@ -13,6 +13,7 @@ bool mmxIsSupported() // TODO: There are other ways to determine MMX using FLAGS register. +#ifdef _WIN32 __asm { mov eax, 1 @@ -20,6 +21,9 @@ bool mmxIsSupported() and edx, 0x800000 mov v1, edx } +#else + v1 = 0; +#endif return v1 != 0; }