[FFmpeg-cvslog] r24887 - in trunk/libavcodec/x86: fft_3dn2.c fft_sse.c

alexc subversion
Mon Aug 23 17:51:09 CEST 2010


Author: alexc
Date: Mon Aug 23 17:51:09 2010
New Revision: 24887

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

It generates smaller cleaner code.

Modified:
   trunk/libavcodec/x86/fft_3dn2.c
   trunk/libavcodec/x86/fft_sse.c

Modified: trunk/libavcodec/x86/fft_3dn2.c
==============================================================================
--- trunk/libavcodec/x86/fft_3dn2.c	Mon Aug 23 17:38:57 2010	(r24886)
+++ trunk/libavcodec/x86/fft_3dn2.c	Mon Aug 23 17:51:09 2010	(r24887)
@@ -56,7 +56,7 @@ void ff_fft_calc_3dn2(FFTContext *s, FFT
 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_half_3dn2(FFTContext *s, F
 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);

Modified: trunk/libavcodec/x86/fft_sse.c
==============================================================================
--- trunk/libavcodec/x86/fft_sse.c	Mon Aug 23 17:38:57 2010	(r24886)
+++ trunk/libavcodec/x86/fft_sse.c	Mon Aug 23 17:51:09 2010	(r24887)
@@ -74,7 +74,7 @@ void ff_fft_permute_sse(FFTContext *s, F
 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);



More information about the ffmpeg-cvslog mailing list