[MPlayer-cvslog] r26094 - trunk/cpudetect.c
diego
subversion at mplayerhq.hu
Sun Feb 24 19:21:41 CET 2008
Author: diego
Date: Sun Feb 24 19:21:41 2008
New Revision: 26094
Log:
Wrap HAVE_XXX macros with RUNTIME_CPUDETECT, because when RUNTIME_CPUDETECT is
enabled, checking HAVE_XXX and disabling that CPU feature is meaningless.
patch by KO Myung-Hun, komh chollian net
Modified:
trunk/cpudetect.c
Modified: trunk/cpudetect.c
==============================================================================
--- trunk/cpudetect.c (original)
+++ trunk/cpudetect.c Sun Feb 24 19:21:41 2008
@@ -202,6 +202,7 @@ void GetCpuCaps( CpuCaps *caps)
// caps->hasMMX2 = 0;
// caps->hasMMX = 0;
+#ifndef RUNTIME_CPUDETECT
#ifndef HAVE_MMX
if(caps->hasMMX) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"MMX supported but disabled\n");
caps->hasMMX=0;
@@ -226,6 +227,7 @@ void GetCpuCaps( CpuCaps *caps)
if(caps->has3DNowExt) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"3DNowExt supported but disabled\n");
caps->has3DNowExt=0;
#endif
+#endif // RUNTIME_CPUDETECT
}
More information about the MPlayer-cvslog
mailing list