[Ffmpeg-devel] [PATCH] Avoid generating MMX2 code for fft_3dn2.c

Zuxy Meng zuxy.meng
Thu May 18 14:38:55 CEST 2006


Hi,

A few people are using K6-2+/3+, which supports extended 3DNow! but
dosen't support extended MMX, so 'march=athlon' might not be safe for
them, especially when they've turned 'fprefetch-loop-arrays' on.
Though not an issue at present, we'd better fix it right now.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
--- ffmpeg/libavcodec/Makefile	2006-05-18 01:39:28.000000000 +0800
+++ ffmpeg.new/libavcodec/Makefile	2006-05-18 20:09:10.000000000 +0800
@@ -351,7 +351,7 @@
 ifdef TARGET_BUILTIN_3DNOW
 i386/fft_3dn.o: CFLAGS+= -m3dnow
 ifeq ($(TARGET_ARCH_X86),yes)
-i386/fft_3dn2.o: CFLAGS+= -march=athlon
+i386/fft_3dn2.o: CFLAGS+= -march=athlon -mno-sse
 endif
 ifeq ($(TARGET_ARCH_X86_64),yes)
 i386/fft_3dn2.o: CFLAGS+= -march=k8



More information about the ffmpeg-devel mailing list