Permalink
Browse files

fixed: all architectures benefit from SSE implying MMX2

  • Loading branch information...
1 parent 2486e97 commit 26fb8addb93776d30c33ea53525ded732b98eab7 @CrystalP CrystalP committed Jan 28, 2011
Showing with 5 additions and 4 deletions.
  1. +5 −4 xbmc/utils/CPUInfo.cpp
View
@@ -241,6 +241,11 @@ CCPUInfo::CCPUInfo(void)
readProcStat(m_userTicks, m_niceTicks, m_systemTicks, m_idleTicks, m_ioTicks);
#endif
+
+ // Set MMX2 when SSE is present as SSE is a superset of MMX2 and Intel doesn't set the MMX2 cap
+ if (m_cpuFeatures & CPU_FEATURE_SSE)
+ m_cpuFeatures |= CPU_FEATURE_MMX2;
+
}
CCPUInfo::~CCPUInfo()
@@ -546,10 +551,6 @@ void CCPUInfo::ReadCPUFeatures()
m_cpuFeatures |= CPU_FEATURE_3DNOWEXT;
}
- // Set MMX2 when SSE is present as SSE is a superset of MMX2 and Intel doesn't set the MMX2 cap
- if (m_cpuFeatures & CPU_FEATURE_SSE)
- m_cpuFeatures |= CPU_FEATURE_MMX2;
-
#elif !defined(__powerpc__) && !defined(__ppc__) && !defined(__arm__)
m_cpuFeatures |= CPU_FEATURE_MMX;
#elif defined(__powerpc__) || defined(__ppc__)

0 comments on commit 26fb8ad

Please sign in to comment.