summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRomain Dolbeau <dolbeau@irisa.fr>2004-04-22 13:21:59 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-04-22 13:21:59 +0000
commit9007f51460bfb78813f25b37d3484c7b40ceb0d1 (patch)
tree8d68fd44fa4ff6c7c401b09c8e6ee85db8a54030 /configure
parent2750b827b3144a62fdc161a47341dd58764522b7 (diff)
better hadamard8_diff16 in AltiVec, and more patch by (Romain Dolbeau <dolbeau at irisa dot fr>)
Originally committed as revision 3038 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 8 insertions, 1 deletions
diff --git a/configure b/configure
index 25ff645ad8..d301f3053f 100755
--- a/configure
+++ b/configure
@@ -516,6 +516,7 @@ fi
# Add processor-specific flags
TUNECPU="generic"
+POWERPCMODE="32bits"
if test $tune != "generic"; then
case $tune in
601|ppc601|PowerPC601)
@@ -561,11 +562,12 @@ if test $tune != "generic"; then
TUNECPU=ppc7400
;;
G5|g5|970|ppc970|PowerPC970|power4*|Power4*)
- CFLAGS="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc64 -force_cpusubtype_ALL "
+ CFLAGS="$CFLAGS -mcpu=970 -mtune=970 -mpowerpc-gfxopt -mpowerpc64"
if test $altivec = "no"; then
echo "WARNING: tuning for PPC970 but altivec disabled !";
fi
TUNECPU=ppc970
+ POWERPCMODE="64bits"
;;
*)
echo "WARNING: unknown CPU "$tune", ignored"
@@ -1027,6 +1029,11 @@ elif test "$cpu" = "sparc64" ; then
elif test "$cpu" = "powerpc" ; then
echo "TARGET_ARCH_POWERPC=yes" >> config.mak
echo "#define ARCH_POWERPC 1" >> $TMPH
+ if test $POWERPCMODE = "32bits"; then
+ echo "#define POWERPC_MODE_32BITS 1" >> $TMPH
+ else
+ echo "#define POWERPC_MODE_64BITS 1" >> $TMPH
+ fi
if test "$powerpc_perf" = "yes"; then
echo "#define POWERPC_PERFORMANCE_REPORT 1" >> $TMPH
fi