Commit 1c666465 authored by James Zern's avatar James Zern

inv_txfm_{sse2,ssse3}: clear conversion warnings

visual studio reports tran_high_t (int64) -> short in calls to
_mm_set1_epi16

Change-Id: Icb8d1baee77ad3d45edb1477a443d3e648f0b745
parent 62682ac8
......@@ -253,7 +253,7 @@ void vpx_idct8x8_1_add_sse2(const tran_low_t *input, uint8_t *dest,
out = WRAPLOW(dct_const_round_shift(out * cospi_16_64));
a1 = ROUND_POWER_OF_TWO(out, 5);
dc_value = _mm_set1_epi16(a1);
dc_value = _mm_set1_epi16((int16_t)a1);
recon_and_store_8_dual(dest, dc_value, stride);
dest += 2 * stride;
......@@ -776,7 +776,7 @@ void vpx_idct16x16_1_add_sse2(const tran_low_t *input, uint8_t *dest,
out = WRAPLOW(dct_const_round_shift(out * cospi_16_64));
a1 = ROUND_POWER_OF_TWO(out, 6);
dc_value = _mm_set1_epi16(a1);
dc_value = _mm_set1_epi16((int16_t)a1);
for (i = 0; i < 16; ++i) {
recon_and_store_16(dest, dc_value);
......@@ -2048,7 +2048,7 @@ void vpx_idct32x32_1_add_sse2(const tran_low_t *input, uint8_t *dest,
out = WRAPLOW(dct_const_round_shift(out * cospi_16_64));
a1 = ROUND_POWER_OF_TWO(out, 6);
dc_value = _mm_set1_epi16(a1);
dc_value = _mm_set1_epi16((int16_t)a1);
for (j = 0; j < 32; ++j) {
recon_and_store_16(dest + j * stride + 0, dc_value);
......
......@@ -22,15 +22,15 @@ static INLINE void idct8x8_12_add_kernel_ssse3(__m128i *const io /* io[8] */) {
const __m128i cp_28d_4d = dual_set_epi16(2 * cospi_28_64, 2 * cospi_4_64);
const __m128i cp_n20d_12d = dual_set_epi16(-2 * cospi_20_64, 2 * cospi_12_64);
const __m128i cp_8d_24d = dual_set_epi16(2 * cospi_8_64, 2 * cospi_24_64);
const __m128i cp_16_16 = _mm_set1_epi16(cospi_16_64);
const __m128i cp_16_16 = _mm_set1_epi16((int16_t)cospi_16_64);
const __m128i cp_16_n16 = pair_set_epi16(cospi_16_64, -cospi_16_64);
const __m128i cospi_16_64d = _mm_set1_epi16(2 * cospi_16_64);
const __m128i cospi_28_64d = _mm_set1_epi16(2 * cospi_28_64);
const __m128i cospi_4_64d = _mm_set1_epi16(2 * cospi_4_64);
const __m128i cospi_n20_64d = _mm_set1_epi16(-2 * cospi_20_64);
const __m128i cospi_12_64d = _mm_set1_epi16(2 * cospi_12_64);
const __m128i cospi_24_64d = _mm_set1_epi16(2 * cospi_24_64);
const __m128i cospi_8_64d = _mm_set1_epi16(2 * cospi_8_64);
const __m128i cospi_16_64d = _mm_set1_epi16((int16_t)(2 * cospi_16_64));
const __m128i cospi_28_64d = _mm_set1_epi16((int16_t)(2 * cospi_28_64));
const __m128i cospi_4_64d = _mm_set1_epi16((int16_t)(2 * cospi_4_64));
const __m128i cospi_n20_64d = _mm_set1_epi16((int16_t)(-2 * cospi_20_64));
const __m128i cospi_12_64d = _mm_set1_epi16((int16_t)(2 * cospi_12_64));
const __m128i cospi_24_64d = _mm_set1_epi16((int16_t)(2 * cospi_24_64));
const __m128i cospi_8_64d = _mm_set1_epi16((int16_t)(2 * cospi_8_64));
__m128i step1[8], step2[8], tmp[4];
// pass 1
......
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