aboutsummaryrefslogtreecommitdiff
path: root/src/image
diff options
context:
space:
mode:
authoravsharapov <analytics.kzn@gmail.com>2018-10-13 13:31:39 +0300
committerIskander Sharipov <iskander.sharipov@intel.com>2018-10-13 11:18:56 +0000
commite489a236b40febae0c2df0462ae8dd6cffdd3646 (patch)
tree61ec2d5f97b0471980de537f993373041a9e77b0 /src/image
parentc4f07510a0161c4493a751984e24532a1b189759 (diff)
downloadgo-e489a236b40febae0c2df0462ae8dd6cffdd3646.tar.gz
go-e489a236b40febae0c2df0462ae8dd6cffdd3646.zip
jpeg: simplify 'x = x op ...' to 'x op= ...'
Change-Id: Id431969e42f0d9bd28bbf163d10378a6de2416f2 Reviewed-on: https://go-review.googlesource.com/c/141999 Run-TryBot: Iskander Sharipov <iskander.sharipov@intel.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Iskander Sharipov <iskander.sharipov@intel.com>
Diffstat (limited to 'src/image')
-rw-r--r--src/image/jpeg/fdct.go32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/image/jpeg/fdct.go b/src/image/jpeg/fdct.go
index 3f8be4e326..201a5abd0b 100644
--- a/src/image/jpeg/fdct.go
+++ b/src/image/jpeg/fdct.go
@@ -123,14 +123,14 @@ func fdct(b *block) {
tmp13 = tmp1 + tmp3
z1 = (tmp12 + tmp13) * fix_1_175875602
z1 += 1 << (constBits - pass1Bits - 1)
- tmp0 = tmp0 * fix_1_501321110
- tmp1 = tmp1 * fix_3_072711026
- tmp2 = tmp2 * fix_2_053119869
- tmp3 = tmp3 * fix_0_298631336
- tmp10 = tmp10 * -fix_0_899976223
- tmp11 = tmp11 * -fix_2_562915447
- tmp12 = tmp12 * -fix_0_390180644
- tmp13 = tmp13 * -fix_1_961570560
+ tmp0 *= fix_1_501321110
+ tmp1 *= fix_3_072711026
+ tmp2 *= fix_2_053119869
+ tmp3 *= fix_0_298631336
+ tmp10 *= -fix_0_899976223
+ tmp11 *= -fix_2_562915447
+ tmp12 *= -fix_0_390180644
+ tmp13 *= -fix_1_961570560
tmp12 += z1
tmp13 += z1
@@ -171,14 +171,14 @@ func fdct(b *block) {
tmp13 = tmp1 + tmp3
z1 = (tmp12 + tmp13) * fix_1_175875602
z1 += 1 << (constBits + pass1Bits - 1)
- tmp0 = tmp0 * fix_1_501321110
- tmp1 = tmp1 * fix_3_072711026
- tmp2 = tmp2 * fix_2_053119869
- tmp3 = tmp3 * fix_0_298631336
- tmp10 = tmp10 * -fix_0_899976223
- tmp11 = tmp11 * -fix_2_562915447
- tmp12 = tmp12 * -fix_0_390180644
- tmp13 = tmp13 * -fix_1_961570560
+ tmp0 *= fix_1_501321110
+ tmp1 *= fix_3_072711026
+ tmp2 *= fix_2_053119869
+ tmp3 *= fix_0_298631336
+ tmp10 *= -fix_0_899976223
+ tmp11 *= -fix_2_562915447
+ tmp12 *= -fix_0_390180644
+ tmp13 *= -fix_1_961570560
tmp12 += z1
tmp13 += z1