Mercurial > mplayer.hg
comparison configure @ 17047:d628bc96cb47
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
author | gpoirier |
---|---|
date | Sat, 26 Nov 2005 15:52:17 +0000 |
parents | 8e458f513c48 |
children | 2f4f6c278741 |
comparison
equal
deleted
inserted
replaced
17046:e3770b3cd209 | 17047:d628bc96cb47 |
---|---|
907 else | 907 else |
908 proc=i586 | 908 proc=i586 |
909 fi | 909 fi |
910 ;; | 910 ;; |
911 6) iproc=686 | 911 6) iproc=686 |
912 # VIA C3 has SSE, but doesn't have MMX2 | |
913 # workaround for SSE => MMX2 implication above | |
914 _mmx2=no | |
915 if test "$pmodel" -ge 9; then | 912 if test "$pmodel" -ge 9; then |
916 proc=c3-2 | 913 proc=c3-2 |
917 elif test "$pmodel" -ge 7; then | 914 else |
918 proc=c3 | 915 proc=c3 |
919 else | 916 iproc=586 |
920 proc=i686 | |
921 fi | 917 fi |
922 ;; | 918 ;; |
923 *) proc=i686 iproc=i686 ;; | 919 *) proc=i686 iproc=i686 ;; |
924 esac | 920 esac |
925 ;; | 921 ;; |
958 cc_check -march=$proc $cpuopt=$proc || proc=athlon | 954 cc_check -march=$proc $cpuopt=$proc || proc=athlon |
959 fi | 955 fi |
960 if test "$proc" = "k6-3" || test "$proc" = "k6-2"; then | 956 if test "$proc" = "k6-3" || test "$proc" = "k6-2"; then |
961 cc_check -march=$proc $cpuopt=$proc || proc=k6 | 957 cc_check -march=$proc $cpuopt=$proc || proc=k6 |
962 fi | 958 fi |
963 if test "$proc" = "k6"; then | 959 if test "$proc" = "k6" || test "$proc" = "c3"; then |
964 if not cc_check -march=$proc $cpuopt=$proc; then | 960 if not cc_check -march=$proc $cpuopt=$proc; then |
965 if cc_check -march=i586 $cpuopt=i686; then | 961 if cc_check -march=i586 $cpuopt=i686; then |
966 proc=i586-i686 | 962 proc=i586-i686 |
967 else | 963 else |
968 proc=i586 | 964 proc=i586 |
973 cc_check -march=$proc $cpuopt=$proc || proc=i686 | 969 cc_check -march=$proc $cpuopt=$proc || proc=i686 |
974 fi | 970 fi |
975 if test "$proc" = "i686" || test "$proc" = "pentium-mmx" || test "$proc" = "winchip-c6" || test "$proc" = "winchip2"; then | 971 if test "$proc" = "i686" || test "$proc" = "pentium-mmx" || test "$proc" = "winchip-c6" || test "$proc" = "winchip2"; then |
976 cc_check -march=$proc $cpuopt=$proc || proc=i586 | 972 cc_check -march=$proc $cpuopt=$proc || proc=i586 |
977 fi | 973 fi |
978 if test "$proc" = "i586" || test "$proc" = "c3" || test "$proc" = "c3-2"; then | 974 if test "$proc" = "i586"; then |
979 cc_check -march=$proc $cpuopt=$proc || proc=i486 | 975 cc_check -march=$proc $cpuopt=$proc || proc=i486 |
980 fi | 976 fi |
981 if test "$proc" = "i486" ; then | 977 if test "$proc" = "i486" ; then |
982 cc_check -march=$proc $cpuopt=$proc || proc=i386 | 978 cc_check -march=$proc $cpuopt=$proc || proc=i386 |
983 fi | 979 fi |