[x265] [PATCH] blockcopy-sse3.cpp: removed warning: overflow in implicit constant conversion
dnyaneshwar at multicorewareinc.com
dnyaneshwar at multicorewareinc.com
Fri Oct 18 07:00:50 CEST 2013
# HG changeset patch
# User Dnyaneshwar Gorade <dnyaneshwar at multicorewareinc.com>
# Date 1382072393 -19800
# Fri Oct 18 10:29:53 2013 +0530
# Node ID c68e51b0c4d85a9c1f24cfe30be042c4f32bdc1d
# Parent 4dbd17ef69db91b5604f9c5cc6a4a62f15b91ab0
blockcopy-sse3.cpp: removed warning: overflow in implicit constant conversion.
diff -r 4dbd17ef69db -r c68e51b0c4d8 source/common/vec/blockcopy-sse3.cpp
--- a/source/common/vec/blockcopy-sse3.cpp Thu Oct 17 21:00:22 2013 +0530
+++ b/source/common/vec/blockcopy-sse3.cpp Fri Oct 18 10:29:53 2013 +0530
@@ -134,11 +134,11 @@
void pixeladd_pp(int bx, int by, pixel *dst, intptr_t dstride, pixel *src0, pixel *src1, intptr_t sstride0, intptr_t sstride1)
{
size_t aligncheck = (size_t)dst | (size_t)src0 | bx | sstride0 | sstride1 | dstride;
- int i = 1;
+ unsigned char i = (1 << X265_DEPTH) - 1;
if (!(aligncheck & 15))
{
- __m128i maxval = _mm_set1_epi8((i << X265_DEPTH) - 1);
+ __m128i maxval = _mm_set1_epi8(i);
__m128i zero = _mm_setzero_si128();
// fast path, multiples of 16 pixel wide blocks
@@ -162,7 +162,7 @@
}
else if (!(bx & 15))
{
- __m128i maxval = _mm_set1_epi8((i << X265_DEPTH) - 1);
+ __m128i maxval = _mm_set1_epi8(i);
__m128i zero = _mm_setzero_si128();
// fast path, multiples of 16 pixel wide blocks but pointers/strides require unaligned accesses
More information about the x265-devel
mailing list