diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-11-26 15:52:17 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-11-26 15:52:17 +0000 |
commit | 2cccb9c97c8d19b00d2faee710576c117f30e5f6 (patch) | |
tree | e6c65937af2193694cb5e1f90df798277e23bb02 /configure | |
parent | bc33a9d7a638bca1c05ced78c486e5a62150abcf (diff) |
Correct optimization for C3, patch by Zuxy Meng < zuxy POIS meng AH gmail POIS com >
Original thread
Date: Nov 25, 2005 3:35 AM
Subject: [MPlayer-dev-eng] [PATCH] Correct optimization for C3
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17048 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 4 insertions, 8 deletions
@@ -909,15 +909,11 @@ case "$host_arch" in fi ;; 6) iproc=686 - # VIA C3 has SSE, but doesn't have MMX2 - # workaround for SSE => MMX2 implication above - _mmx2=no if test "$pmodel" -ge 9; then proc=c3-2 - elif test "$pmodel" -ge 7; then - proc=c3 else - proc=i686 + proc=c3 + iproc=586 fi ;; *) proc=i686 iproc=i686 ;; @@ -960,7 +956,7 @@ EOF if test "$proc" = "k6-3" || test "$proc" = "k6-2"; then cc_check -march=$proc $cpuopt=$proc || proc=k6 fi - if test "$proc" = "k6"; then + if test "$proc" = "k6" || test "$proc" = "c3"; then if not cc_check -march=$proc $cpuopt=$proc; then if cc_check -march=i586 $cpuopt=i686; then proc=i586-i686 @@ -975,7 +971,7 @@ EOF if test "$proc" = "i686" || test "$proc" = "pentium-mmx" || test "$proc" = "winchip-c6" || test "$proc" = "winchip2"; then cc_check -march=$proc $cpuopt=$proc || proc=i586 fi - if test "$proc" = "i586" || test "$proc" = "c3" || test "$proc" = "c3-2"; then + if test "$proc" = "i586"; then cc_check -march=$proc $cpuopt=$proc || proc=i486 fi if test "$proc" = "i486" ; then |