]> granicus.if.org Git - libvpx/commitdiff
Avoid re-use same temp variables
authorYaowu Xu <yaowu@google.com>
Fri, 2 Sep 2016 22:30:21 +0000 (15:30 -0700)
committerYaowu Xu <yaowu@google.com>
Tue, 6 Sep 2016 14:52:19 +0000 (14:52 +0000)
In highbd_quantize_intrin_sse2.c.

Change-Id: Iaf6360e456f1fb2f8ff06461afbfecfc0103dda3

aom_dsp/x86/highbd_quantize_intrin_sse2.c

index 598f3d23a1acfeb3fbb414b34346f731f20c1b44..0e9726dc2c2b803304feacbfde4c5488d8d5ccc4 100644 (file)
@@ -78,10 +78,10 @@ void aom_highbd_quantize_b_sse2(const tran_low_t *coeff_ptr, intptr_t count,
       for (j = 0; j < 4; j++) {
         if (test & (1 << (4 * j))) {
           int k = 4 * i + j;
-          const int64_t tmp1 = abs_coeff[j] + round_ptr[k != 0];
-          const int64_t tmp2 = ((tmp1 * quant_ptr[k != 0]) >> 16) + tmp1;
+          const int64_t tmp3 = abs_coeff[j] + round_ptr[k != 0];
+          const int64_t tmp4 = ((tmp3 * quant_ptr[k != 0]) >> 16) + tmp3;
           const uint32_t abs_qcoeff =
-              (uint32_t)((tmp2 * quant_shift_ptr[k != 0]) >> 16);
+              (uint32_t)((tmp4 * quant_shift_ptr[k != 0]) >> 16);
           qcoeff_ptr[k] = (int)(abs_qcoeff ^ coeff_sign[j]) - coeff_sign[j];
           dqcoeff_ptr[k] = qcoeff_ptr[k] * dequant_ptr[k != 0];
           if (abs_qcoeff) eob_i = iscan[k] > eob_i ? iscan[k] : eob_i;