[MPlayer-dev-eng] [PATCH] Runtime optimization march for x86_64

Zuxy Meng zuxy.meng at gmail.com
Tue Oct 17 06:03:11 CEST 2006


Hi,

At least gcc 4.1 has an undocumented march option x86-64 that is an
intersection of k8 and nocona, hence suitable for those who are
preparing a binary release.

BTW: Do we really need to check CPU's capability at run time for
x86-64? It architecturally supports MMX, SSE and SSE2 anyway and the
only advantage for a run time check is the possibility to make use of
3DNow!.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
Index: configure
===================================================================
--- configure	???????? 20277??
+++ configure	????????????
@@ -1152,9 +1152,11 @@
         _mcpu=""
         _march=""
       fi
-    else
-      _march=""
-      _mcpu=""
+    else # if test "$_runtime_cpudetection" = no
+      _march="-march=x86-64"
+      _mcpu="$cpuopt=x86-64"
+      cc_check $_mcpu || _mcpu=""
+      cc_check $_march $_mcpu || _march=""
     fi
     
     _optimizing=""


More information about the MPlayer-dev-eng mailing list