mirror of https://github.com/mpv-player/mpv
full-featured gcc ppc optimization (601,603,604,740,750,745,755,7400,7410,7450)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10392 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
e5d75d03ea
commit
37c2599916
|
@ -867,12 +867,14 @@ EOF
|
||||||
proc=''
|
proc=''
|
||||||
_march=''
|
_march=''
|
||||||
_mcpu=''
|
_mcpu=''
|
||||||
|
# XXX: this should be removed imho...
|
||||||
cpu750=`$_cpuinfo | grep "cpu.*750"`
|
cpu750=`$_cpuinfo | grep "cpu.*750"`
|
||||||
if test -n "$cpu750"; then
|
if test -n "$cpu750"; then
|
||||||
_march='-mcpu=750'
|
_march='-mcpu=750'
|
||||||
_mcpu='-mtune=750'
|
_mcpu='-mtune=750'
|
||||||
fi
|
fi
|
||||||
if linux ; then
|
if linux ; then
|
||||||
|
proc=`$_cpuinfo | grep 'cpu' | cut -d ':' -f 2 | cut -d ',' -f 1 | cut -b 2- | head -1`
|
||||||
if test -n "`$_cpuinfo | grep altivec`"; then
|
if test -n "`$_cpuinfo | grep altivec`"; then
|
||||||
_altivec=yes
|
_altivec=yes
|
||||||
fi
|
fi
|
||||||
|
@ -882,6 +884,25 @@ EOF
|
||||||
_altivec=yes
|
_altivec=yes
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
if test -n "$proc"; then
|
||||||
|
case "$proc" in
|
||||||
|
601) _march='-mcpu=601' _mcpu='-mtune=601' ;;
|
||||||
|
603) _march='-mcpu=603' _mcpu='-mtune=603' ;;
|
||||||
|
603e|603ev) _march='-mcpu=603e' _mcpu='-mtune=603e' ;;
|
||||||
|
604|604e|604r|604ev) _march='-mcpu=604' _mcpu='-mtune=604' ;;
|
||||||
|
740|740/750|745/755) _march='-mcpu=740' _mcpu='-mtune=740' ;;
|
||||||
|
750|750CX) _march='-mcpu=750' _mcpu='-mtune=750' ;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
# gcc 3.1(.1) and up supports 7400 and 7450
|
||||||
|
if test "$_cc_major" -ge "3" && test "$_cc_minor" -ge "1"; then
|
||||||
|
case "$proc" in
|
||||||
|
7400*|7410*) _march='-mcpu=7400' _mcpu='-mtune=7400' ;;
|
||||||
|
7450*) _march='-mcpu=7450' _mcpu='-mtune=7450' ;;
|
||||||
|
*) ;;
|
||||||
|
esac
|
||||||
|
fi
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
alpha)
|
alpha)
|
||||||
|
|
Loading…
Reference in New Issue