Mercurial > libavcodec.hg
changeset 971:6d8b45263d6c libavcodec
enabled SSE fft on x86
author | bellard |
---|---|
date | Tue, 07 Jan 2003 17:45:24 +0000 |
parents | a521e0ecc5a8 |
children | 19419cb268fe |
files | fft.c |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/fft.c Tue Jan 07 17:44:21 2003 +0000 +++ b/fft.c Tue Jan 07 17:45:24 2003 +0000 @@ -51,11 +51,11 @@ 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 @@ nblocks = nblocks >> 1; } while (nblocks != 0); av_freep(&s->exptab); + s->fft_calc = fft_calc_sse; } #endif