Commit 78155b7e authored by James Zern's avatar James Zern

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
parent facb1249
......@@ -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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment