diff options
author | Romain Dolbeau <dolbeau@irisa.fr> | 2003-07-09 20:18:13 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-07-09 20:18:13 +0000 |
commit | e45a2872fafe631c14aee9f79d0963d68c4fc1fd (patch) | |
tree | 8c559f7a215414fb8207f7f524702d11d5b9dce0 /configure | |
parent | 0273ceebbd01f9fd5238558e6151e0b9aa3305ab (diff) | |
download | ffmpeg-e45a2872fafe631c14aee9f79d0963d68c4fc1fd.tar.gz |
1) remove TBL support in PPC performance. It's much more useful to use the
PMCs, and with Apple's CHUD it's fairly easy too. No reason to keep useless
code around
2) make the PPC perf stuff a configure option
3) make put_pixels16_altivec a bit faster by unrolling the loop by 4
patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
Originally committed as revision 2022 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -27,6 +27,7 @@ make="make" strip="strip" cpu=`uname -m` tune="generic" +powerpc_perf="no" mmx="default" altivec="default" mmi="default" @@ -275,6 +276,8 @@ for opt do ;; --tune=*) tune=`echo $opt | cut -d '=' -f 2` ;; + --powerpc-perf-enable) powerpc_perf="yes" + ;; --disable-mmx) mmx="no" ;; --disable-altivec) altivec="no" @@ -398,7 +401,7 @@ if test $tune != "generic"; then if test $altivec = "no"; then echo "WARNING: tuning for PPC74xx but altivec disabled !"; fi - TUNECPU=ppc7450 + TUNECPU=ppc7400 ;; G5|970|ppc970|PowerPC970|power4*|Power4*) CFLAGS="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc64 -force_cpusubtype_ALL " @@ -749,6 +752,7 @@ echo " --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]" echo " --extra-libs=ELIBS add ELIBS [$ELIBS]" echo " --cpu=CPU force cpu to CPU [$cpu]" echo " --tune=PROCESSOR tune code for a particular CPU (may fails or misperforms on other CPUs)" +echo " --powerpc-perf-enable enable performance report on PPC (requires enabling PMC)" echo " --disable-mmx disable mmx usage" echo " --disable-altivec disable AltiVec usage" echo " --disable-audio-oss disable OSS audio support [default=no]" @@ -847,10 +851,9 @@ elif test "$cpu" = "sparc64" ; then elif test "$cpu" = "powerpc" ; then echo "TARGET_ARCH_POWERPC=yes" >> config.mak echo "#define ARCH_POWERPC 1" >> $TMPH - echo "// Enable the next line to get PowerPC performance report" >> $TMPH - echo "// #define POWERPC_TBL_PERFORMANCE_REPORT 1" >> $TMPH - echo "// Enable the next line to use PMC registers instead of TBL" >> $TMPH - echo "// #define POWERPC_PERF_USE_PMC 1" >> $TMPH + if test "$powerpc_perf" = "yes"; then + echo "#define POWERPC_PERFORMANCE_REPORT 1" >> $TMPH + fi elif test "$cpu" = "mips" ; then echo "TARGET_ARCH_MIPS=yes" >> config.mak echo "#define ARCH_MIPS 1" >> $TMPH |