# HG changeset patch # User alexc # Date 1282578669 0 # Node ID b64b8e5a2d3a98f88d6af0932fda4eed9fe58257 # Parent 86f5aff0f8e8403b53d7865cca99ea2b03038740 imdct/x86: Use "s->mdct_size" instead of "1 << s->mdct_bits". It generates smaller cleaner code. diff -r 86f5aff0f8e8 -r b64b8e5a2d3a x86/fft_3dn2.c --- a/x86/fft_3dn2.c Mon Aug 23 13:19:48 2010 +0000 +++ b/x86/fft_3dn2.c Mon Aug 23 15:51:09 2010 +0000 @@ -56,7 +56,7 @@ void ff_imdct_half_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input) { x86_reg j, k; - long n = 1 << s->mdct_bits; + long n = s->mdct_size; long n2 = n >> 1; long n4 = n >> 2; long n8 = n >> 3; @@ -147,7 +147,7 @@ void ff_imdct_calc_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input) { x86_reg j, k; - long n = 1 << s->mdct_bits; + long n = s->mdct_size; long n4 = n >> 2; ff_imdct_half_3dn2(s, output+n4, input); diff -r 86f5aff0f8e8 -r b64b8e5a2d3a x86/fft_sse.c --- a/x86/fft_sse.c Mon Aug 23 13:19:48 2010 +0000 +++ b/x86/fft_sse.c Mon Aug 23 15:51:09 2010 +0000 @@ -74,7 +74,7 @@ void ff_imdct_calc_sse(FFTContext *s, FFTSample *output, const FFTSample *input) { x86_reg j, k; - long n = 1 << s->mdct_bits; + long n = s->mdct_size; long n4 = n >> 2; ff_imdct_half_sse(s, output+n4, input);