1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

fix compilation of 3dnowext instinsincs, both on ia32 and AMD64.

3dnow intrinsincs are for now only compiled if 3dnowext support is available. (I should add smth that
checks for plain 3dnow later)

Originally committed as revision 5386 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Guillaume Poirier 2006-05-16 14:24:45 +00:00
parent b997b34fa7
commit c2f69579bb
2 changed files with 13 additions and 2 deletions

8
configure vendored
View File

@ -1114,13 +1114,19 @@ fi
cat > $TMPC << EOF cat > $TMPC << EOF
#include <mm3dnow.h> #include <mm3dnow.h>
int main(void) { int main(void) {
__m64 b1;
b1 = _m_pswapd(b1);
_m_femms(); _m_femms();
return 0; return 0;
} }
EOF EOF
mm3dnow=no mm3dnow=no
if $cc -m3dnow -o $TMPO $TMPC 2> /dev/null ; then march=athlon
if test "$cpu" = "x86_64"; then
march=k8
fi
if $cc -march=$march -o $TMPO $TMPC 2> /dev/null ; then
mm3dnow=yes mm3dnow=yes
fi fi

View File

@ -350,7 +350,12 @@ depend: CFLAGS+= -msse
endif endif
ifdef TARGET_BUILTIN_3DNOW ifdef TARGET_BUILTIN_3DNOW
i386/fft_3dn.o: CFLAGS+= -m3dnow i386/fft_3dn.o: CFLAGS+= -m3dnow
i386/fft_3dn2.o: CFLAGS+= -m3dnow ifeq ($(TARGET_ARCH_X86),yes)
i386/fft_3dn2.o: CFLAGS+= -march=athlon
endif
ifeq ($(TARGET_ARCH_X86_64),yes)
i386/fft_3dn2.o: CFLAGS+= -march=k8
endif
endif endif
endif endif