Originally committed as revision 21297 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård authored on 2010/01/19 06:05:08... | ... |
@@ -1817,67 +1817,67 @@ enable $arch |
1817 | 1817 |
# Add processor-specific flags |
1818 | 1818 |
if enabled ppc; then |
1819 | 1819 |
|
1820 |
-case $cpu in |
|
1821 |
- 601|ppc601|PowerPC601) |
|
1822 |
- cpuflags="-mcpu=601" |
|
1823 |
- ;; |
|
1824 |
- 603*|ppc603*|PowerPC603*) |
|
1825 |
- cpuflags="-mcpu=603" |
|
1826 |
- ;; |
|
1827 |
- 604*|ppc604*|PowerPC604*) |
|
1828 |
- cpuflags="-mcpu=604" |
|
1829 |
- ;; |
|
1830 |
- G3|g3|75*|ppc75*|PowerPC75*) |
|
1831 |
- cpuflags="-mcpu=750 -mpowerpc-gfxopt" |
|
1832 |
- ;; |
|
1833 |
- G4|g4|745*|ppc745*|PowerPC745*) |
|
1834 |
- cpuflags="-mcpu=7450 -mpowerpc-gfxopt" |
|
1835 |
- ;; |
|
1836 |
- 74*|ppc74*|PowerPC74*) |
|
1837 |
- cpuflags="-mcpu=7400 -mpowerpc-gfxopt" |
|
1838 |
- ;; |
|
1839 |
- G5|g5|970|ppc970|PowerPC970|power4*|Power4*) |
|
1840 |
- cpuflags="-mcpu=970 -mpowerpc-gfxopt -mpowerpc64" |
|
1841 |
- ;; |
|
1842 |
- Cell|CELL|cell) |
|
1843 |
- cpuflags="-mcpu=cell" |
|
1844 |
- enable ldbrx |
|
1845 |
- ;; |
|
1846 |
-esac |
|
1820 |
+ case $cpu in |
|
1821 |
+ 601|ppc601|PowerPC601) |
|
1822 |
+ cpuflags="-mcpu=601" |
|
1823 |
+ ;; |
|
1824 |
+ 603*|ppc603*|PowerPC603*) |
|
1825 |
+ cpuflags="-mcpu=603" |
|
1826 |
+ ;; |
|
1827 |
+ 604*|ppc604*|PowerPC604*) |
|
1828 |
+ cpuflags="-mcpu=604" |
|
1829 |
+ ;; |
|
1830 |
+ G3|g3|75*|ppc75*|PowerPC75*) |
|
1831 |
+ cpuflags="-mcpu=750 -mpowerpc-gfxopt" |
|
1832 |
+ ;; |
|
1833 |
+ G4|g4|745*|ppc745*|PowerPC745*) |
|
1834 |
+ cpuflags="-mcpu=7450 -mpowerpc-gfxopt" |
|
1835 |
+ ;; |
|
1836 |
+ 74*|ppc74*|PowerPC74*) |
|
1837 |
+ cpuflags="-mcpu=7400 -mpowerpc-gfxopt" |
|
1838 |
+ ;; |
|
1839 |
+ G5|g5|970|ppc970|PowerPC970|power4*|Power4*) |
|
1840 |
+ cpuflags="-mcpu=970 -mpowerpc-gfxopt -mpowerpc64" |
|
1841 |
+ ;; |
|
1842 |
+ Cell|CELL|cell) |
|
1843 |
+ cpuflags="-mcpu=cell" |
|
1844 |
+ enable ldbrx |
|
1845 |
+ ;; |
|
1846 |
+ esac |
|
1847 | 1847 |
|
1848 | 1848 |
elif enabled x86; then |
1849 | 1849 |
|
1850 |
-case $cpu in |
|
1851 |
- i[345]86|pentium) |
|
1852 |
- cpuflags="-march=$cpu" |
|
1853 |
- disable mmx |
|
1854 |
- ;; |
|
1855 |
- # targets that do NOT support conditional mov (cmov) |
|
1856 |
- pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3) |
|
1857 |
- cpuflags="-march=$cpu" |
|
1858 |
- disable cmov |
|
1859 |
- ;; |
|
1860 |
- # targets that do support conditional mov (cmov) |
|
1861 |
- i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64|k8|opteron|athlon-fx|core2|amdfam10) |
|
1862 |
- cpuflags="-march=$cpu" |
|
1863 |
- enable cmov |
|
1864 |
- enable fast_cmov |
|
1865 |
- ;; |
|
1866 |
- # targets that do support conditional mov but on which it's slow |
|
1867 |
- pentium4|pentium4m|prescott|nocona) |
|
1868 |
- cpuflags="-march=$cpu" |
|
1869 |
- enable cmov |
|
1870 |
- disable fast_cmov |
|
1871 |
- ;; |
|
1872 |
-esac |
|
1850 |
+ case $cpu in |
|
1851 |
+ i[345]86|pentium) |
|
1852 |
+ cpuflags="-march=$cpu" |
|
1853 |
+ disable mmx |
|
1854 |
+ ;; |
|
1855 |
+ # targets that do NOT support conditional mov (cmov) |
|
1856 |
+ pentium-mmx|k6|k6-[23]|winchip-c6|winchip2|c3) |
|
1857 |
+ cpuflags="-march=$cpu" |
|
1858 |
+ disable cmov |
|
1859 |
+ ;; |
|
1860 |
+ # targets that do support conditional mov (cmov) |
|
1861 |
+ i686|pentiumpro|pentium[23]|pentium-m|athlon|athlon-tbird|athlon-4|athlon-[mx]p|athlon64|k8|opteron|athlon-fx|core2|amdfam10) |
|
1862 |
+ cpuflags="-march=$cpu" |
|
1863 |
+ enable cmov |
|
1864 |
+ enable fast_cmov |
|
1865 |
+ ;; |
|
1866 |
+ # targets that do support conditional mov but on which it's slow |
|
1867 |
+ pentium4|pentium4m|prescott|nocona) |
|
1868 |
+ cpuflags="-march=$cpu" |
|
1869 |
+ enable cmov |
|
1870 |
+ disable fast_cmov |
|
1871 |
+ ;; |
|
1872 |
+ esac |
|
1873 | 1873 |
|
1874 | 1874 |
elif enabled sparc; then |
1875 | 1875 |
|
1876 |
-case $cpu in |
|
1877 |
- sparc64) |
|
1878 |
- cpuflags="-mcpu=v9" |
|
1879 |
- ;; |
|
1880 |
-esac |
|
1876 |
+ case $cpu in |
|
1877 |
+ sparc64) |
|
1878 |
+ cpuflags="-mcpu=v9" |
|
1879 |
+ ;; |
|
1880 |
+ esac |
|
1881 | 1881 |
|
1882 | 1882 |
elif enabled arm; then |
1883 | 1883 |
|
... | ... |
@@ -1922,24 +1922,24 @@ esac |
1922 | 1922 |
|
1923 | 1923 |
elif enabled avr32; then |
1924 | 1924 |
|
1925 |
-case $cpu in |
|
1926 |
- ap7[02]0[0-2]) |
|
1927 |
- subarch="avr32_ap" |
|
1928 |
- cpuflags="-mpart=$cpu" |
|
1929 |
- ;; |
|
1930 |
- ap) |
|
1931 |
- subarch="avr32_ap" |
|
1932 |
- cpuflags="-march=$cpu" |
|
1933 |
- ;; |
|
1934 |
- uc3[ab]*) |
|
1935 |
- subarch="avr32_uc" |
|
1936 |
- cpuflags="-mcpu=$cpu" |
|
1937 |
- ;; |
|
1938 |
- uc) |
|
1939 |
- subarch="avr32_uc" |
|
1940 |
- cpuflags="-march=$cpu" |
|
1941 |
- ;; |
|
1942 |
-esac |
|
1925 |
+ case $cpu in |
|
1926 |
+ ap7[02]0[0-2]) |
|
1927 |
+ subarch="avr32_ap" |
|
1928 |
+ cpuflags="-mpart=$cpu" |
|
1929 |
+ ;; |
|
1930 |
+ ap) |
|
1931 |
+ subarch="avr32_ap" |
|
1932 |
+ cpuflags="-march=$cpu" |
|
1933 |
+ ;; |
|
1934 |
+ uc3[ab]*) |
|
1935 |
+ subarch="avr32_uc" |
|
1936 |
+ cpuflags="-mcpu=$cpu" |
|
1937 |
+ ;; |
|
1938 |
+ uc) |
|
1939 |
+ subarch="avr32_uc" |
|
1940 |
+ cpuflags="-march=$cpu" |
|
1941 |
+ ;; |
|
1942 |
+ esac |
|
1943 | 1943 |
|
1944 | 1944 |
else |
1945 | 1945 |
|