changeset 6409:813ff53ed933 libavcodec

Avoid a=b+c but rather use a+=b (gcc is too stupid to do this itself), code is exactly the same just uses different variables.
author michael
date Tue, 26 Feb 2008 15:32:34 +0000
parents 7af599600f2d
children 72e573046758
files faandct.c
diffstat 1 files changed, 14 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/faandct.c	Tue Feb 26 15:19:37 2008 +0000
+++ b/faandct.c	Tue Feb 26 15:32:34 2008 +0000
@@ -103,14 +103,14 @@
         temp[2 + i]= tmp13 + tmp12;
         temp[6 + i]= tmp13 - tmp12;
 
-        tmp10= tmp4 + tmp5;
-        tmp11= tmp5 + tmp6;
-        tmp12= tmp6 + tmp7;
+        tmp4 += tmp5;
+        tmp5 += tmp6;
+        tmp6 += tmp7;
 
-        z5= (tmp10 - tmp12) * A5;
-        z2= tmp10*A2 + z5;
-        z4= tmp12*A4 + z5;
-        z3= tmp11*A1;
+        z5= (tmp4 - tmp6) * A5;
+        z2= tmp4*A2 + z5;
+        z4= tmp6*A4 + z5;
+        z3= tmp5*A1;
 
         z11= tmp7 + z3;
         z13= tmp7 - z3;
@@ -157,14 +157,14 @@
         data[8*2 + i]= lrintf(SCALE(8*2 + i) * (tmp13 + tmp12));
         data[8*6 + i]= lrintf(SCALE(8*6 + i) * (tmp13 - tmp12));
 
-        tmp10= tmp4 + tmp5;
-        tmp11= tmp5 + tmp6;
-        tmp12= tmp6 + tmp7;
+        tmp4 += tmp5;
+        tmp5 += tmp6;
+        tmp6 += tmp7;
 
-        z5= (tmp10 - tmp12) * A5;
-        z2= tmp10*A2 + z5;
-        z4= tmp12*A4 + z5;
-        z3= tmp11*A1;
+        z5= (tmp4 - tmp6) * A5;
+        z2= tmp4*A2 + z5;
+        z4= tmp6*A4 + z5;
+        z3= tmp5*A1;
 
         z11= tmp7 + z3;
         z13= tmp7 - z3;