Commit f791e631 authored by James Zern's avatar James Zern
Browse files

od_filter_dering_direction_*: make int64->int explicit

clears -Wshorten-64-to-32 warnings

Change-Id: I55231a9a0eec7ade5b06328f386ec19b11860646
parent 3e2613b1
......@@ -287,7 +287,7 @@ int SIMD_FUNC(od_filter_dering_direction_4x4)(uint16_t *y, int ystride,
v64_store_aligned(&y[i * ystride], v128_low_v64(res));
v64_store_aligned(&y[(i + 1) * ystride], v128_high_v64(res));
}
return (v128_dotp_s16(total_abs, v128_dup_16(1)) + 2) >> 2;
return (int)((v128_dotp_s16(total_abs, v128_dup_16(1)) + 2) >> 2);
}
int SIMD_FUNC(od_filter_dering_direction_8x8)(uint16_t *y, int ystride,
......@@ -364,5 +364,5 @@ int SIMD_FUNC(od_filter_dering_direction_8x8)(uint16_t *y, int ystride,
res = v128_add_16(row, res);
v128_store_unaligned(&y[i * ystride], res);
}
return (v128_dotp_s16(total_abs, v128_dup_16(1)) + 8) >> 4;
return (int)((v128_dotp_s16(total_abs, v128_dup_16(1)) + 8) >> 4);
}
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