[x265] [PATCH] pixel8.inc: sad_x3_8 avoiding extra condition check

praveen at multicorewareinc.com praveen at multicorewareinc.com
Sun Aug 25 11:45:03 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1377423868 -19800
# Node ID 9f258e39c460df870f305ebde2a66aade979630c
# Parent  be5997dcf7df4b12ea87936f0956bafd6536c581
pixel8.inc: sad_x3_8 avoiding extra condition check

diff -r be5997dcf7df -r 9f258e39c460 source/common/vec/pixel8.inc
--- a/source/common/vec/pixel8.inc	Sun Aug 25 15:07:38 2013 +0530
+++ b/source/common/vec/pixel8.inc	Sun Aug 25 15:14:28 2013 +0530
@@ -2247,7 +2247,7 @@
         res[2] = _mm_cvtsi128_si32(sum0);
     }
 
-    if (ly == 8)
+   else if (ly == 8)
     {
         T00 = _mm_loadl_epi64((__m128i*)(fenc + (0) * FENC_STRIDE));
         T01 = _mm_loadl_epi64((__m128i*)(fenc + (1) * FENC_STRIDE));
@@ -2347,7 +2347,7 @@
         sum0 = _mm_add_epi32(sum0, T21);
         res[2] = res[2] + _mm_cvtsi128_si32(sum0);
     }
-    if (ly == 16)
+   else if (ly == 16)
     {
         T00 = _mm_loadl_epi64((__m128i*)(fenc + (0) * FENC_STRIDE));
         T01 = _mm_loadl_epi64((__m128i*)(fenc + (1) * FENC_STRIDE));


More information about the x265-devel mailing list