[FFmpeg-devel] [PATCH 2/2] mips: ac3 downmix fixing indention.

Nedeljko Babic nbabic at mips.com
Thu Dec 13 11:59:09 CET 2012


Signed-off-by: Nedeljko Babic <nbabic at mips.com>
---
 libavcodec/mips/ac3dsp_mips.c |   69 +++++++++++++++++++++--------------------
 1 files changed, 35 insertions(+), 34 deletions(-)

diff --git a/libavcodec/mips/ac3dsp_mips.c b/libavcodec/mips/ac3dsp_mips.c
index e75e1df..382152d 100644
--- a/libavcodec/mips/ac3dsp_mips.c
+++ b/libavcodec/mips/ac3dsp_mips.c
@@ -267,7 +267,8 @@ static void float_to_fixed24_mips(int32_t *dst, const float *src, unsigned int l
     } while (len > 0);
 }
 
-static void ac3_downmix_mips(float **samples, float (*matrix)[2], int out_ch, int in_ch, int len)
+static void ac3_downmix_mips(float **samples, float (*matrix)[2],
+                             int out_ch, int in_ch, int len)
 {
     int i, j, i1, i2, i3;
     float v0, v1, v2, v3;
@@ -305,25 +306,25 @@ static void ac3_downmix_mips(float **samples, float (*matrix)[2], int out_ch, in
         "addu   %[samples_end], %[samples_x],          %[j]         \n\t"
         "move   %[samples_sw],  %[samples_p]                        \n\t"
 
-                "1:                                                         \n\t"   // start of the inner for loop (for (j = 0; j < in_ch; j++))
-                "lwc1   %[matrix_j],    0(%[matrix_p])                      \n\t"
-                "lwc1   %[matrix_j2],   4(%[matrix_p])                      \n\t"
-                "lwxc1  %[samples0],    %[i](%[samples_p])                  \n\t"
-                "lwxc1  %[samples1],    %[i1](%[samples_p])                 \n\t"
-                "lwxc1  %[samples2],    %[i2](%[samples_p])                 \n\t"
-                "lwxc1  %[samples3],    %[i3](%[samples_p])                 \n\t"
-                "addiu  %[matrix_p],    8                                   \n\t"
-                "addiu  %[samples_x],   4                                   \n\t"
-                "madd.s %[v0],          %[v0],  %[samples0],    %[matrix_j] \n\t"
-                "madd.s %[v1],          %[v1],  %[samples1],    %[matrix_j] \n\t"
-                "madd.s %[v2],          %[v2],  %[samples2],    %[matrix_j] \n\t"
-                "madd.s %[v3],          %[v3],  %[samples3],    %[matrix_j] \n\t"
-                "madd.s %[v4],          %[v4],  %[samples0],    %[matrix_j2]\n\t"
-                "madd.s %[v5],          %[v5],  %[samples1],    %[matrix_j2]\n\t"
-                "madd.s %[v6],          %[v6],  %[samples2],    %[matrix_j2]\n\t"
-                "madd.s %[v7],          %[v7],  %[samples3],    %[matrix_j2]\n\t"
-                "bne    %[samples_x],   %[samples_end],         1b          \n\t"
-                " lw    %[samples_p],   0(%[samples_x])                     \n\t"
+        "1:                                                         \n\t"   // start of the inner for loop (for (j = 0; j < in_ch; j++))
+        "lwc1   %[matrix_j],    0(%[matrix_p])                      \n\t"
+        "lwc1   %[matrix_j2],   4(%[matrix_p])                      \n\t"
+        "lwxc1  %[samples0],    %[i](%[samples_p])                  \n\t"
+        "lwxc1  %[samples1],    %[i1](%[samples_p])                 \n\t"
+        "lwxc1  %[samples2],    %[i2](%[samples_p])                 \n\t"
+        "lwxc1  %[samples3],    %[i3](%[samples_p])                 \n\t"
+        "addiu  %[matrix_p],    8                                   \n\t"
+        "addiu  %[samples_x],   4                                   \n\t"
+        "madd.s %[v0],          %[v0],  %[samples0],    %[matrix_j] \n\t"
+        "madd.s %[v1],          %[v1],  %[samples1],    %[matrix_j] \n\t"
+        "madd.s %[v2],          %[v2],  %[samples2],    %[matrix_j] \n\t"
+        "madd.s %[v3],          %[v3],  %[samples3],    %[matrix_j] \n\t"
+        "madd.s %[v4],          %[v4],  %[samples0],    %[matrix_j2]\n\t"
+        "madd.s %[v5],          %[v5],  %[samples1],    %[matrix_j2]\n\t"
+        "madd.s %[v6],          %[v6],  %[samples2],    %[matrix_j2]\n\t"
+        "madd.s %[v7],          %[v7],  %[samples3],    %[matrix_j2]\n\t"
+        "bne    %[samples_x],   %[samples_end],         1b          \n\t"
+        " lw    %[samples_p],   0(%[samples_x])                     \n\t"
 
         "lw     %[samples_p],   4(%[samples])                       \n\t"
         "swxc1  %[v0],          %[i](%[samples_sw])                 \n\t"
@@ -355,20 +356,20 @@ static void ac3_downmix_mips(float **samples, float (*matrix)[2], int out_ch, in
         "addu   %[samples_end], %[samples_x],          %[j]         \n\t"
         "move   %[samples_sw],  %[samples_p]                        \n\t"
 
-                "4:                                                         \n\t"   // start of the inner for loop (for (j = 0; j < in_ch; j++))
-                "lwc1   %[matrix_j],    0(%[matrix_p])                      \n\t"
-                "lwxc1  %[samples0],    %[i](%[samples_p])                  \n\t"
-                "lwxc1  %[samples1],    %[i1](%[samples_p])                 \n\t"
-                "lwxc1  %[samples2],    %[i2](%[samples_p])                 \n\t"
-                "lwxc1  %[samples3],    %[i3](%[samples_p])                 \n\t"
-                "addiu  %[matrix_p],    8                                   \n\t"
-                "addiu  %[samples_x],   4                                   \n\t"
-                "madd.s %[v0],          %[v0],  %[samples0],    %[matrix_j] \n\t"
-                "madd.s %[v1],          %[v1],  %[samples1],    %[matrix_j] \n\t"
-                "madd.s %[v2],          %[v2],  %[samples2],    %[matrix_j] \n\t"
-                "madd.s %[v3],          %[v3],  %[samples3],    %[matrix_j] \n\t"
-                "bne    %[samples_x],   %[samples_end],         4b          \n\t"
-                " lw    %[samples_p],   0(%[samples_x])                     \n\t"
+        "4:                                                         \n\t"   // start of the inner for loop (for (j = 0; j < in_ch; j++))
+        "lwc1   %[matrix_j],    0(%[matrix_p])                      \n\t"
+        "lwxc1  %[samples0],    %[i](%[samples_p])                  \n\t"
+        "lwxc1  %[samples1],    %[i1](%[samples_p])                 \n\t"
+        "lwxc1  %[samples2],    %[i2](%[samples_p])                 \n\t"
+        "lwxc1  %[samples3],    %[i3](%[samples_p])                 \n\t"
+        "addiu  %[matrix_p],    8                                   \n\t"
+        "addiu  %[samples_x],   4                                   \n\t"
+        "madd.s %[v0],          %[v0],  %[samples0],    %[matrix_j] \n\t"
+        "madd.s %[v1],          %[v1],  %[samples1],    %[matrix_j] \n\t"
+        "madd.s %[v2],          %[v2],  %[samples2],    %[matrix_j] \n\t"
+        "madd.s %[v3],          %[v3],  %[samples3],    %[matrix_j] \n\t"
+        "bne    %[samples_x],   %[samples_end],         4b          \n\t"
+        " lw    %[samples_p],   0(%[samples_x])                     \n\t"
 
         "swxc1  %[v0],          %[i](%[samples_sw])                 \n\t"
         "addiu  %[i],           16                                  \n\t"
-- 
1.7.3.4



More information about the ffmpeg-devel mailing list