[common] rect: fix avx unaligned bytes copy
Thanks @D0ot for debugging and finding this this, the LG community are very appreciate for a fix for this long outstanding bug. Fixes #1129 Closes #1136
This commit is contained in:
1 parent
3ea37b86e3
commit
6a0a635781
1 file changed
+1
-1
+1
-1
@@ -335,7 +335,7 @@ static void rectCopyUnaligned_avx(
|
||||
for (int i = ystart; i < yend; ++i)
|
||||
{
|
||||
// copy the unaligned bytes
|
||||
for(int col = align; col >= 0; --col)
|
||||
for(int col = align - 1; col >= 0; --col)
|
||||
dst[col] = src[col];
|
||||
|
||||
const __m256i *restrict s = (__m256i*)(src + align);
|
||||
|
||||
Reference in new issue
Block a user