changeset 11328:51d5b29fc4fc libavcodec

Add commented-out unoptimized code to improve readability
author vitor
date Mon, 01 Mar 2010 19:56:51 +0000
parents 6a29fa092197
children fb56293a501a
files celp_filters.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/celp_filters.c	Mon Mar 01 16:52:35 2010 +0000
+++ b/celp_filters.c	Mon Mar 01 19:56:51 2010 +0000
@@ -86,6 +86,13 @@
 {
     int i,n;
 
+#if 0 // Unoptimized code patch for improved readability
+    for (n = 0; n < buffer_length; n++) {
+        out[n] = in[n];
+        for (i = 1; i <= filter_length; i++)
+            out[n] -= filter_coeffs[i-1] * out[n-i];
+    }
+#else
     float out0, out1, out2, out3;
     float old_out0, old_out1, old_out2, old_out3;
     float a,b,c;
@@ -186,6 +193,7 @@
         for (i = 1; i <= filter_length; i++)
             out[n] -= filter_coeffs[i-1] * out[n-i];
     }
+#endif
 }
 
 void ff_celp_lp_zero_synthesis_filterf(float *out, const float *filter_coeffs,