Mercurial > mplayer.hg
changeset 22888:43b8a7c3595c
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
author | diego |
---|---|
date | Tue, 03 Apr 2007 13:16:46 +0000 |
parents | dc3ff1498f69 |
children | d78278e1ece6 |
files | configure |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/configure Tue Apr 03 11:03:14 2007 +0000 +++ b/configure Tue Apr 03 13:16:46 2007 +0000 @@ -1767,10 +1767,10 @@ _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 @@ 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