diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2006-09-21 16:37:39 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2006-09-21 16:37:39 +0000 |
commit | ebbafcb454d01c063d42bf8a21ef79366bc33012 (patch) | |
tree | 33b5464fc64046cd78c2e3a0f26db8ee65f405e5 /libavcodec/fft.c | |
parent | f5a478f65d7262dbe194641d384f24fbbc03ed85 (diff) | |
download | ffmpeg-ebbafcb454d01c063d42bf8a21ef79366bc33012.tar.gz |
sse implementation of imdct.
patch mostly by Zuxy Meng (zuxy dot meng at gmail dot com)
Originally committed as revision 6311 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/fft.c')
-rw-r--r-- | libavcodec/fft.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavcodec/fft.c b/libavcodec/fft.c index 7716dd2e5e..f90b1f43f5 100644 --- a/libavcodec/fft.c +++ b/libavcodec/fft.c @@ -65,17 +65,18 @@ int ff_fft_init(FFTContext *s, int nbits, int inverse) if (has_vectors) { #if defined(HAVE_MMX) - if (has_vectors & MM_3DNOWEXT) - s->imdct_calc = ff_imdct_calc_3dn2; - if (has_vectors & MM_3DNOWEXT) + if (has_vectors & MM_3DNOWEXT) { /* 3DNowEx for K7/K8 */ + s->imdct_calc = ff_imdct_calc_3dn2; s->fft_calc = ff_fft_calc_3dn2; - else if (has_vectors & MM_3DNOW) + } else if (has_vectors & MM_3DNOW) { /* 3DNow! for K6-2/3 */ s->fft_calc = ff_fft_calc_3dn; - else if (has_vectors & MM_SSE) + } else if (has_vectors & MM_SSE) { /* SSE for P3/P4 */ + s->imdct_calc = ff_imdct_calc_sse; s->fft_calc = ff_fft_calc_sse; + } #else /* HAVE_MMX */ if (has_vectors & MM_ALTIVEC) s->fft_calc = ff_fft_calc_altivec; |