Commit 54c0a3cd authored by Yaowu Xu's avatar Yaowu Xu
Browse files

Make type conversions explicit

This help MSVC compiler to avoid warnings.

Change-Id: Ibe53cbce7648c453bbea4db91e324bf131fbdd41
parent d3e7c68b
......@@ -74,10 +74,10 @@ static void idct4x4_sse4_1(__m128i *in, int bit) {
static void iadst4x4_sse4_1(__m128i *in, int bit) {
bit = 14;
const __m128i rnding = _mm_set1_epi32(1 << (bit - 1));
const __m128i sinpi1 = _mm_set1_epi32(sinpi_1_9);
const __m128i sinpi2 = _mm_set1_epi32(sinpi_2_9);
const __m128i sinpi3 = _mm_set1_epi32(sinpi_3_9);
const __m128i sinpi4 = _mm_set1_epi32(sinpi_4_9);
const __m128i sinpi1 = _mm_set1_epi32((int)sinpi_1_9);
const __m128i sinpi2 = _mm_set1_epi32((int)sinpi_2_9);
const __m128i sinpi3 = _mm_set1_epi32((int)sinpi_3_9);
const __m128i sinpi4 = _mm_set1_epi32((int)sinpi_4_9);
__m128i t;
__m128i s0, s1, s2, s3, s4, s5, s6, s7;
__m128i x0, x1, x2, x3;
......
......@@ -123,10 +123,10 @@ static INLINE void write_buffer_4x4(__m128i *res, int32_t *output) {
static void fadst4x4_sse4_1(__m128i *in, int bit) {
bit = 14;
const __m128i rnding = _mm_set1_epi32(1 << (bit - 1));
const __m128i sinpi1 = _mm_set1_epi32(sinpi_1_9);
const __m128i sinpi2 = _mm_set1_epi32(sinpi_2_9);
const __m128i sinpi3 = _mm_set1_epi32(sinpi_3_9);
const __m128i sinpi4 = _mm_set1_epi32(sinpi_4_9);
const __m128i sinpi1 = _mm_set1_epi32((int)sinpi_1_9);
const __m128i sinpi2 = _mm_set1_epi32((int)sinpi_2_9);
const __m128i sinpi3 = _mm_set1_epi32((int)sinpi_3_9);
const __m128i sinpi4 = _mm_set1_epi32((int)sinpi_4_9);
__m128i t;
__m128i s0, s1, s2, s3, s4, s5, s6, s7;
__m128i x0, x1, x2, x3;
......
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