aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-02-26 15:32:34 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-02-26 15:32:34 +0000
commit92ac614f85c7f3d10dbc1843942cd64c52e1928b (patch)
tree993de9d36c61bed647ab4b00f4c95fb4944ed0c5 /libavcodec
parente6d7ef648c3e0a97870fe44948a68fe17afb7860 (diff)
downloadffmpeg-92ac614f85c7f3d10dbc1843942cd64c52e1928b.tar.gz
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. Originally committed as revision 12235 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/faandct.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/libavcodec/faandct.c b/libavcodec/faandct.c
index c711d0592d..1f0f1b89aa 100644
--- a/libavcodec/faandct.c
+++ b/libavcodec/faandct.c
@@ -103,14 +103,14 @@ static av_always_inline void row_fdct(FLOAT temp[64], DCTELEM * data)
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 @@ void ff_faandct(DCTELEM * data)
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;