Browse code

Disable Altivec for processors older than G4.

Originally committed as revision 21546 to svn://svn.ffmpeg.org/ffmpeg/trunk

Carl Eugen Hoyos authored on 2010/01/31 03:50:28
Showing 1 changed files
... ...
@@ -1889,15 +1889,19 @@ elif enabled ppc; then
1889 1889
     case $(tolower $cpu) in
1890 1890
         601|ppc601|powerpc601)
1891 1891
             cpuflags="-mcpu=601"
1892
+            disable altivec
1892 1893
         ;;
1893 1894
         603*|ppc603*|powerpc603*)
1894 1895
             cpuflags="-mcpu=603"
1896
+            disable altivec
1895 1897
         ;;
1896 1898
         604*|ppc604*|powerpc604*)
1897 1899
             cpuflags="-mcpu=604"
1900
+            disable altivec
1898 1901
         ;;
1899 1902
         g3|75*|ppc75*|powerpc75*)
1900 1903
             cpuflags="-mcpu=750 -mpowerpc-gfxopt"
1904
+            disable altivec
1901 1905
         ;;
1902 1906
         g4|745*|ppc745*|powerpc745*)
1903 1907
             cpuflags="-mcpu=7450 -mpowerpc-gfxopt"