diff options
author | Zuxy Meng <zuxy.meng@gmail.com> | 2006-03-08 04:13:55 +0000 |
---|---|---|
committer | Corey Hickey <bugfood-ml@fatooh.org> | 2006-03-08 04:13:55 +0000 |
commit | 82eb4b0f1bea743f6eaf58c13c475e1e3d045a6a (patch) | |
tree | 64212de0c864fdc87d03f66dfc23f1fcdb087679 /configure | |
parent | 8e32161943efb0486bf83134dc6f695b46ff743c (diff) | |
download | ffmpeg-82eb4b0f1bea743f6eaf58c13c475e1e3d045a6a.tar.gz |
3DNow! & Extended 3DNow! versions of FFT
Patch by Zuxy Meng, zuxy <<dot>> meng >>at<< gmail <<dot>> com
Minor non-functional diff-related fixes by me.
Originally committed as revision 5125 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -1110,6 +1110,19 @@ if $cc -msse -o $TMPO $TMPC 2> /dev/null ; then builtin_vector=yes fi +# test for mm3dnow.h +cat > $TMPC << EOF +#include <mm3dnow.h> +int main(void) { +return 0; +} +EOF + +mm3dnow=no +if $cc -march=athlon -o $TMPO $TMPC 2> /dev/null ; then + mm3dnow=yes +fi + # Probe for -Wdeclaration-after-statement if test "$cc" = "gcc"; then cat > $TMPC << EOF @@ -1328,6 +1341,7 @@ echo "broken inttypes.h $emu_fast_int" if test $cpu = "x86" -o $cpu = "x86_64"; then echo "MMX enabled $mmx" echo "Vector Builtins $builtin_vector" +echo "3DNow! Builtins $mm3dnow" fi if test $cpu = "armv4l"; then echo "IWMMXT enabled $iwmmxt" @@ -1508,6 +1522,10 @@ if test "$builtin_vector" = "yes" ; then echo "TARGET_BUILTIN_VECTOR=yes" >> config.mak echo "#define HAVE_BUILTIN_VECTOR 1" >> $TMPH fi +if test "$mm3dnow" = "yes" ; then + echo "TARGET_BUILTIN_3DNOW=yes" >> config.mak + echo "#define HAVE_MM3DNOW 1" >> $TMPH +fi if test "$iwmmxt" = "yes" ; then echo "TARGET_IWMMXT=yes" >> config.mak echo "#define HAVE_IWMMXT 1" >> $TMPH |