diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-03 13:16:46 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2007-04-03 13:16:46 +0000 |
commit | 2868cadfff4564f1ae922606844ba6be9c57c97f (patch) | |
tree | 61b923143aeaa9888186e457a7c4a5ae5d86188c | |
parent | de222fac400f553bcbad3689cc7d15fc110125f5 (diff) | |
download | mpv-2868cadfff4564f1ae922606844ba6be9c57c97f.tar.bz2 mpv-2868cadfff4564f1ae922606844ba6be9c57c97f.tar.xz |
Use "generic" optimization instead of 686 as default for runtime-cpudetection
if available. It promises to deliver optimal performance on a collection of
comtemporary CPUs.
patch by Zuxy Meng, zuxy.meng gmail com
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22906 b3059339-0415-0410-9bf9-f77b7e298cf2
-rwxr-xr-x | configure | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1767,10 +1767,10 @@ EOF _optimizing="$proc" fi else # if test "$_runtime_cpudetection" = no - # i686 is probably the most common CPU - optimize for it - _mcpu="$cpuopt=i686" + _mcpu="$cpuopt=generic" # at least i486 required, for bswap instruction _march="-march=i486" + cc_check $_mcpu || _mcpu="$cpuopt=i686" cc_check $_mcpu || _mcpu="" cc_check $_march $_mcpu || _march="" fi @@ -1889,7 +1889,8 @@ EOF else # if test "$_runtime_cpudetection" = no # x86-64 is an undocumented option, an intersection of k8 and nocona. _march="-march=x86-64" - _mcpu="$cpuopt=x86-64" + _mcpu="$cpuopt=generic" + cc_check $_mcpu || _mcpu="x86-64" cc_check $_mcpu || _mcpu="" cc_check $_march $_mcpu || _march="" fi |