shithub: libvpx

Download patch

ref: 78155b7ed5a2fe7d2447912e3f0b1dc7463c650a
parent: facb124941b0a88c7591d09fefe6a7736afea04a
author: James Zern <jzern@google.com>
date: Sun Jul 30 08:48:28 EDT 2017

highbd_inv_txfm_sse4: make << of neg. val a multiply

left shifting a negative value is undefined; quiets a ubsan warning.
this is applied to a constant, no change in the generated code.

Change-Id: I595f0ff7904ef025e07bb80234293d958dc9f254

--- a/vpx_dsp/x86/highbd_inv_txfm_sse4.h
+++ b/vpx_dsp/x86/highbd_inv_txfm_sse4.h
@@ -18,7 +18,7 @@
 
 static INLINE __m128i multiplication_round_shift_sse4_1(
     const __m128i *const in /*in[2]*/, const int c) {
-  const __m128i pair_c = pair_set_epi32(c << 2, 0);
+  const __m128i pair_c = pair_set_epi32(c * 4, 0);
   __m128i t0, t1;
 
   t0 = _mm_mul_epi32(in[0], pair_c);