[x265] [PATCH] pixel-sse3.cpp: Modified calcRecons8 function argument names. Removed hungarian prefixes

dnyaneshwar at multicorewareinc.com dnyaneshwar at multicorewareinc.com
Wed Oct 9 08:56:57 CEST 2013


# HG changeset patch
# User Dnyaneshwar Gorade <dnyaneshwar at multicorewareinc.com>
# Date 1381301777 -19800
#      Wed Oct 09 12:26:17 2013 +0530
# Node ID fdc81da8abfeab81aac8fd2af36a666a91d0a9fa
# Parent  136c6606931b20cd0c2f3d14bf4a0df5127adfcd
pixel-sse3.cpp: Modified calcRecons8 function argument names. Removed hungarian prefixes.

diff -r 136c6606931b -r fdc81da8abfe source/common/vec/pixel-sse3.cpp
--- a/source/common/vec/pixel-sse3.cpp	Wed Oct 09 12:18:52 2013 +0530
+++ b/source/common/vec/pixel-sse3.cpp	Wed Oct 09 12:26:17 2013 +0530
@@ -531,37 +531,37 @@
     }
 }
 
-void calcRecons8(pixel* pPred, short* pResi, pixel* pReco, short* pRecQt, pixel* pRecIPred, int stride, int recstride, int ipredstride)
+void calcRecons8(pixel* pred, short* resi, pixel* reco, short* recQt, pixel* recIPred, int stride, int recstride, int predstride)
 {
     for (int y = 0; y < 8; y++)
     {
-        __m128i resi, pred, sum;
+        __m128i resi1, pred1, sum;
         __m128i temp;
 
-        temp = _mm_loadu_si128((__m128i const*)pPred);
-        pred = _mm_unpacklo_epi8(temp, _mm_setzero_si128());        // interleave with zero extensions
+        temp = _mm_loadu_si128((__m128i const*)pred);
+        pred1 = _mm_unpacklo_epi8(temp, _mm_setzero_si128());       // interleave with zero extensions
 
-        resi = _mm_loadu_si128((__m128i const*)pResi);
-        sum = _mm_add_epi16(pred, resi);
+        resi1 = _mm_loadu_si128((__m128i const*)resi);
+        sum = _mm_add_epi16(pred1, resi1);
 
         __m128i maxval = _mm_set1_epi16(0xff);                      // broadcast value 255(32-bit integer) to all elements of maxval
         __m128i minval = _mm_set1_epi16(0x00);                      // broadcast value 0(32-bit integer) to all elements of minval
         sum = _mm_min_epi16(maxval, _mm_max_epi16(sum, minval));
-        _mm_storeu_si128((__m128i*)pRecQt, sum);
+        _mm_storeu_si128((__m128i*)recQt, sum);
 
         __m128i mask = _mm_set1_epi32(0x00FF00FF);                  // mask for low bytes
         __m128i low_mask  = _mm_and_si128(sum, mask);               // bytes of low
         __m128i high_mask = _mm_and_si128(sum, mask);               // bytes of high
         temp = _mm_packus_epi16(low_mask, high_mask);               // unsigned pack
 
-        _mm_storel_epi64((__m128i*)pReco, temp);
-        _mm_storel_epi64((__m128i*)pRecIPred, temp);
+        _mm_storel_epi64((__m128i*)reco, temp);
+        _mm_storel_epi64((__m128i*)recIPred, temp);
 
-        pPred     += stride;
-        pResi     += stride;
-        pReco     += stride;
-        pRecQt    += recstride;
-        pRecIPred += ipredstride;
+        pred     += stride;
+        resi     += stride;
+        reco     += stride;
+        recQt    += recstride;
+        recIPred += predstride;
     }
 }
 


More information about the x265-devel mailing list