From e6b1ed693ae4098e6b9eabf938fc31ec0b09b120 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Sat, 12 Feb 2011 11:48:16 +0000 Subject: FFT: factor a shuffle out of the inner loop and merge it into fft_permute. 6% faster SSE FFT on Conroe, 2.5% on Penryn. Signed-off-by: Janne Grunau --- libavcodec/fft.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libavcodec/fft.h') diff --git a/libavcodec/fft.h b/libavcodec/fft.h index 37cbfbf6a1..58a7f30ad1 100644 --- a/libavcodec/fft.h +++ b/libavcodec/fft.h @@ -44,7 +44,10 @@ struct FFTContext { void (*imdct_calc)(struct FFTContext *s, FFTSample *output, const FFTSample *input); void (*imdct_half)(struct FFTContext *s, FFTSample *output, const FFTSample *input); void (*mdct_calc)(struct FFTContext *s, FFTSample *output, const FFTSample *input); - int permutation; + int fft_permutation; +#define FF_FFT_PERM_DEFAULT 0 +#define FF_FFT_PERM_SWAP_LSBS 1 + int mdct_permutation; #define FF_MDCT_PERM_NONE 0 #define FF_MDCT_PERM_INTERLEAVE 1 }; -- cgit v1.2.3