Commit cb4f1246 authored by Alex Converse's avatar Alex Converse

imdct/x86: Use "s->mdct_size" instead of "1 << s->mdct_bits".

It generates smaller cleaner code.

Originally committed as revision 24887 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e955bf3b
...@@ -56,7 +56,7 @@ void ff_fft_calc_3dn2(FFTContext *s, FFTComplex *z) ...@@ -56,7 +56,7 @@ void ff_fft_calc_3dn2(FFTContext *s, FFTComplex *z)
void ff_imdct_half_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input) void ff_imdct_half_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input)
{ {
x86_reg j, k; x86_reg j, k;
long n = 1 << s->mdct_bits; long n = s->mdct_size;
long n2 = n >> 1; long n2 = n >> 1;
long n4 = n >> 2; long n4 = n >> 2;
long n8 = n >> 3; long n8 = n >> 3;
...@@ -147,7 +147,7 @@ void ff_imdct_half_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input ...@@ -147,7 +147,7 @@ void ff_imdct_half_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input
void ff_imdct_calc_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input) void ff_imdct_calc_3dn2(FFTContext *s, FFTSample *output, const FFTSample *input)
{ {
x86_reg j, k; x86_reg j, k;
long n = 1 << s->mdct_bits; long n = s->mdct_size;
long n4 = n >> 2; long n4 = n >> 2;
ff_imdct_half_3dn2(s, output+n4, input); ff_imdct_half_3dn2(s, output+n4, input);
......
...@@ -74,7 +74,7 @@ void ff_fft_permute_sse(FFTContext *s, FFTComplex *z) ...@@ -74,7 +74,7 @@ void ff_fft_permute_sse(FFTContext *s, FFTComplex *z)
void ff_imdct_calc_sse(FFTContext *s, FFTSample *output, const FFTSample *input) void ff_imdct_calc_sse(FFTContext *s, FFTSample *output, const FFTSample *input)
{ {
x86_reg j, k; x86_reg j, k;
long n = 1 << s->mdct_bits; long n = s->mdct_size;
long n4 = n >> 2; long n4 = n >> 2;
ff_imdct_half_sse(s, output+n4, input); ff_imdct_half_sse(s, output+n4, input);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment