diff options
author | Yaowu Xu <yaowu@google.com> | 2014-11-05 11:29:21 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2014-11-05 13:47:28 -0800 |
commit | 2c4fee17bcd3e64d8f831c637b34caab98e965d5 (patch) | |
tree | 08e0a90885f3cba7944bbf08595f89a00f291b49 /vp9/encoder/x86/vp9_dct32x32_avx2.c | |
parent | 2c95a3f374f66e796deebb0902a748fc6272e11b (diff) | |
download | libvpx-2c4fee17bcd3e64d8f831c637b34caab98e965d5.tar libvpx-2c4fee17bcd3e64d8f831c637b34caab98e965d5.tar.gz libvpx-2c4fee17bcd3e64d8f831c637b34caab98e965d5.tar.bz2 libvpx-2c4fee17bcd3e64d8f831c637b34caab98e965d5.zip |
Fix visual studio 2013 compiler warnings
For configured with --enable-vp9-highbitdepth
Change-Id: I2b181519d7192f8d7a241ad5760c3578255f24e6
Diffstat (limited to 'vp9/encoder/x86/vp9_dct32x32_avx2.c')
-rw-r--r-- | vp9/encoder/x86/vp9_dct32x32_avx2.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/vp9/encoder/x86/vp9_dct32x32_avx2.c b/vp9/encoder/x86/vp9_dct32x32_avx2.c index 9ea22fed2..66827ad80 100644 --- a/vp9/encoder/x86/vp9_dct32x32_avx2.c +++ b/vp9/encoder/x86/vp9_dct32x32_avx2.c @@ -13,13 +13,14 @@ #include "vpx_ports/mem.h" #define pair256_set_epi16(a, b) \ - _mm256_set_epi16(b, a, b, a, b, a, b, a, b, a, b, a, b, a, b, a) + _mm256_set_epi16((int16_t)(b), (int16_t)(a), (int16_t)(b), (int16_t)(a), \ + (int16_t)(b), (int16_t)(a), (int16_t)(b), (int16_t)(a), \ + (int16_t)(b), (int16_t)(a), (int16_t)(b), (int16_t)(a), \ + (int16_t)(b), (int16_t)(a), (int16_t)(b), (int16_t)(a)) #define pair256_set_epi32(a, b) \ - _mm256_set_epi32(b, a, b, a, b, a, b, a) - - - + _mm256_set_epi32((int)(b), (int)(a), (int)(b), (int)(a), \ + (int)(b), (int)(a), (int)(b), (int)(a)) #if FDCT32x32_HIGH_PRECISION static INLINE __m256i k_madd_epi32_avx2(__m256i a, __m256i b) { @@ -50,7 +51,7 @@ void FDCT32x32_2D_AVX2(const int16_t *input, // When we use them, in one case, they are all the same. In all others // it's a pair of them that we need to repeat four times. This is done // by constructing the 32 bit constant corresponding to that pair. - const __m256i k__cospi_p16_p16 = _mm256_set1_epi16(+cospi_16_64); + const __m256i k__cospi_p16_p16 = _mm256_set1_epi16((int16_t)cospi_16_64); const __m256i k__cospi_p16_m16 = pair256_set_epi16(+cospi_16_64, -cospi_16_64); const __m256i k__cospi_m08_p24 = pair256_set_epi16(-cospi_8_64, cospi_24_64); const __m256i k__cospi_m24_m08 = pair256_set_epi16(-cospi_24_64, -cospi_8_64); |