From 2e18baa3c8316a3e94f7b85293172b0e377db939 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 15 Aug 2012 01:29:19 -0700 Subject: [PATCH] Don't bother handling MMX since we don't use it --- Alc/helpers.c | 11 +++-------- OpenAL32/Include/alMain.h | 7 ++----- 2 files changed, 5 insertions(+), 13 deletions(-) diff --git a/Alc/helpers.c b/Alc/helpers.c index d963f3a8..b5a8363e 100644 --- a/Alc/helpers.c +++ b/Alc/helpers.c @@ -90,10 +90,6 @@ void FillCPUCaps(ALuint capfilter) ERR("Failed to get CPU features\n"); else { -#ifdef bit_MMX - if((cpuinf[0].regs[3]&bit_MMX)) - caps |= CPU_CAP_MMX; -#endif #ifdef bit_SSE if((cpuinf[0].regs[3]&bit_SSE)) caps |= CPU_CAP_SSE; @@ -107,10 +103,9 @@ void FillCPUCaps(ALuint capfilter) caps |= CPU_CAP_NEON; #endif - TRACE("Got caps:%s%s%s%s\n", ((caps&CPU_CAP_MMX)?((capfilter&CPU_CAP_MMX)?" MMX":" (MMX)"):""), - ((caps&CPU_CAP_SSE)?((capfilter&CPU_CAP_SSE)?" SSE":" (SSE)"):""), - ((caps&CPU_CAP_NEON)?((capfilter&CPU_CAP_NEON)?" Neon":" (Neon)"):""), - ((!caps)?" (none)":"")); + TRACE("Got caps:%s%s%s\n", ((caps&CPU_CAP_SSE)?((capfilter&CPU_CAP_SSE)?" SSE":" (SSE)"):""), + ((caps&CPU_CAP_NEON)?((capfilter&CPU_CAP_NEON)?" Neon":" (Neon)"):""), + ((!caps)?" -none-":"")); CPUCapFlags = caps & capfilter; } diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index f05d7316..5665a458 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -765,11 +765,8 @@ extern ALint RTPrioLevel; extern ALuint CPUCapFlags; enum { - CPU_CAP_MMX = 1<<0, - CPU_CAP_SSE = 1<<1, - CPU_CAP_NEON = 1<<3, - - CPU_CAP_ALL = CPU_CAP_MMX|CPU_CAP_SSE|CPU_CAP_NEON + CPU_CAP_SSE = 1<<0, + CPU_CAP_NEON = 1<<1, }; void FillCPUCaps(ALuint capfilter);