From 8514d03402c7155176caf6d36ef8fb4dce4cc625 Mon Sep 17 00:00:00 2001 From: JackyChen Date: Sun, 12 Oct 2014 23:29:10 -0700 Subject: [PATCH] vp9_denoiser_sse2.c: eliminate gcc warnings Change-Id: I5f63f48e11e31ea9951223c5b18f42a2471e4560 --- vp9/encoder/x86/vp9_denoiser_sse2.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/vp9/encoder/x86/vp9_denoiser_sse2.c b/vp9/encoder/x86/vp9_denoiser_sse2.c index bf400d3..0a120e4 100644 --- a/vp9/encoder/x86/vp9_denoiser_sse2.c +++ b/vp9/encoder/x86/vp9_denoiser_sse2.c @@ -50,9 +50,9 @@ static INLINE __m128i vp9_denoiser_16x1_sse2(const uint8_t *sig, const __m128i l21, __m128i acc_diff) { // Calculate differences - const __m128i v_sig = _mm_loadu_si128((__m128i *)(&sig[0])); + const __m128i v_sig = _mm_loadu_si128((const __m128i *)(&sig[0])); const __m128i v_mc_running_avg_y = _mm_loadu_si128( - (__m128i *)(&mc_running_avg_y[0])); + (const __m128i *)(&mc_running_avg_y[0])); __m128i v_running_avg_y; const __m128i pdiff = _mm_subs_epu8(v_mc_running_avg_y, v_sig); const __m128i ndiff = _mm_subs_epu8(v_sig, v_mc_running_avg_y); @@ -103,9 +103,9 @@ static INLINE __m128i vp9_denoiser_adj_16x1_sse2(const uint8_t *sig, __m128i acc_diff) { __m128i v_running_avg_y = _mm_loadu_si128((__m128i *)(&running_avg_y[0])); // Calculate differences. - const __m128i v_sig = _mm_loadu_si128((__m128i *)(&sig[0])); + const __m128i v_sig = _mm_loadu_si128((const __m128i *)(&sig[0])); const __m128i v_mc_running_avg_y = - _mm_loadu_si128((__m128i *)(&mc_running_avg_y[0])); + _mm_loadu_si128((const __m128i *)(&mc_running_avg_y[0])); const __m128i pdiff = _mm_subs_epu8(v_mc_running_avg_y, v_sig); const __m128i ndiff = _mm_subs_epu8(v_sig, v_mc_running_avg_y); // Obtain the sign. FF if diff is negative. @@ -357,9 +357,9 @@ static int vp9_denoiser_64_32_16xM_sse2(const uint8_t *sig, int sig_stride, const __m128i l21 = _mm_set1_epi8(1); int sum_diff = 0; - for (int i = 0; i < 4; i++) { - for (int j = 0; j < 4; j++) { - acc_diff[i][j] = _mm_setzero_si128(); + for (c = 0; c < 4; ++c) { + for (r = 0; r < 4; ++r) { + acc_diff[c][r] = _mm_setzero_si128(); } } -- 2.7.4