summaryrefslogtreecommitdiffstats
path: root/libavcodec/fft.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2006-08-19 02:42:20 +0000
committerLoren Merritt <lorenm@u.washington.edu>2006-08-19 02:42:20 +0000
commit652c59b967d7bbcc3322ba4f5c8c0bfe02794a25 (patch)
treec999c7cad03e02b8828e022844db4a394d245dd5 /libavcodec/fft.c
parent1e4ecf26f599c894c24aaf9b5918630656c352c2 (diff)
downloadffmpeg-streaming-652c59b967d7bbcc3322ba4f5c8c0bfe02794a25.zip
ffmpeg-streaming-652c59b967d7bbcc3322ba4f5c8c0bfe02794a25.tar.gz
use ff_fft_calc_3dn2 instead of sse on a K8.
1.5% faster vorbis. Originally committed as revision 6024 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fft.c')
-rw-r--r--libavcodec/fft.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libavcodec/fft.c b/libavcodec/fft.c
index bc51472..7716dd2 100644
--- a/libavcodec/fft.c
+++ b/libavcodec/fft.c
@@ -68,17 +68,13 @@ int ff_fft_init(FFTContext *s, int nbits, int inverse)
if (has_vectors & MM_3DNOWEXT)
s->imdct_calc = ff_imdct_calc_3dn2;
if (has_vectors & MM_3DNOWEXT)
- /* 3DNowEx for Athlon(XP) */
+ /* 3DNowEx for K7/K8 */
s->fft_calc = ff_fft_calc_3dn2;
else if (has_vectors & MM_3DNOW)
/* 3DNow! for K6-2/3 */
s->fft_calc = ff_fft_calc_3dn;
- if (has_vectors & MM_SSE2)
- /* SSE for P4/K8 */
- s->fft_calc = ff_fft_calc_sse;
- else if ((has_vectors & MM_SSE) &&
- s->fft_calc == ff_fft_calc_c)
- /* SSE for P3 */
+ else if (has_vectors & MM_SSE)
+ /* SSE for P3/P4 */
s->fft_calc = ff_fft_calc_sse;
#else /* HAVE_MMX */
if (has_vectors & MM_ALTIVEC)
OpenPOWER on IntegriCloud