summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2003-01-07 17:45:24 +0000
committerFabrice Bellard <fabrice@bellard.org>2003-01-07 17:45:24 +0000
commitbbbb6d6fc3a1f8feeb5dc2f42a830203fce45afb (patch)
treed758cd98135487e05c99ea6c671d160c9d7f29ec
parentd9823692f58a0fc757fb4209b309659ebdd0fd2f (diff)
downloadffmpeg-streaming-bbbb6d6fc3a1f8feeb5dc2f42a830203fce45afb.zip
ffmpeg-streaming-bbbb6d6fc3a1f8feeb5dc2f42a830203fce45afb.tar.gz
enabled SSE fft on x86
Originally committed as revision 1413 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/fft.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libavcodec/fft.c b/libavcodec/fft.c
index 0f5181a..cdb8d4d 100644
--- a/libavcodec/fft.c
+++ b/libavcodec/fft.c
@@ -51,11 +51,11 @@ int fft_init(FFTContext *s, int nbits, int inverse)
s->exptab1 = NULL;
/* compute constant table for HAVE_SSE version */
-#if defined(HAVE_MMX) && 0
- if (mm_flags & MM_SSE) {
+#if defined(HAVE_MMX) && defined(HAVE_BUILTIN_VECTOR)
+ if (mm_support() & MM_SSE) {
int np, nblocks, np2, l;
FFTComplex *q;
-
+
np = 1 << nbits;
nblocks = np >> 3;
np2 = np >> 1;
@@ -78,6 +78,7 @@ int fft_init(FFTContext *s, int nbits, int inverse)
nblocks = nblocks >> 1;
} while (nblocks != 0);
av_freep(&s->exptab);
+ s->fft_calc = fft_calc_sse;
}
#endif
OpenPOWER on IntegriCloud