[x265] [PATCH] fix bug in sse_sp12
Min Chen
chenm003 at 163.com
Fri Nov 8 08:56:05 CET 2013
# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1383897350 -28800
# Node ID dddde18c654269c7a4c9d8eaae382cf61d174d50
# Parent 6b3b0ca2dd0ee3e3cfe43ec3142c54c3e5f9788a
fix bug in sse_sp12
diff -r 6b3b0ca2dd0e -r dddde18c6542 source/common/vec/pixel-sse41.cpp
--- a/source/common/vec/pixel-sse41.cpp Fri Nov 08 15:53:53 2013 +0800
+++ b/source/common/vec/pixel-sse41.cpp Fri Nov 08 15:55:50 2013 +0800
@@ -433,6 +433,7 @@
sum0 = _mm_add_epi32(sum0, T13);
T00 = _mm_loadu_si128((__m128i*)(fenc + 8));
+ sign = _mm_srai_epi16(T00, 15);
T10 = _mm_unpacklo_epi16(T00, sign);
T11 = _mm_unpackhi_epi8(T01, _mm_setzero_si128());
More information about the x265-devel
mailing list