From da0ce28fe3a73905b2cd7a07f3298a229a16c03d Mon Sep 17 00:00:00 2001 From: Yaowu Xu Date: Thu, 26 Sep 2013 09:20:15 -0700 Subject: fixed integer overflow warnings Jenkins warns on left shift of negative numbers and non-aligned read of int. This commit fixed the two issues. Change-Id: I389a7fb6a572c643902e40a4c10fefef94500d2c --- vp8/common/x86/vp8_asm_stubs.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'vp8/common/x86/vp8_asm_stubs.c') diff --git a/vp8/common/x86/vp8_asm_stubs.c b/vp8/common/x86/vp8_asm_stubs.c index c0416b7e6..b40929381 100644 --- a/vp8/common/x86/vp8_asm_stubs.c +++ b/vp8/common/x86/vp8_asm_stubs.c @@ -611,16 +611,12 @@ void vp8_sixtap_predict4x4_ssse3 for (r = 0; r < 4; r++) { - #if !(CONFIG_FAST_UNALIGNED) dst_ptr[0] = src_ptr[0]; dst_ptr[1] = src_ptr[1]; dst_ptr[2] = src_ptr[2]; dst_ptr[3] = src_ptr[3]; - #else - *(uint32_t *)dst_ptr = *(uint32_t *)src_ptr ; - #endif - dst_ptr += dst_pitch; - src_ptr += src_pixels_per_line; + dst_ptr += dst_pitch; + src_ptr += src_pixels_per_line; } } } -- cgit v1.2.3