[x265] [PATCH] Removed hungarian notation from xDST4 intrinsic code

praveen at multicorewareinc.com praveen at multicorewareinc.com
Tue Jul 2 08:16:54 CEST 2013


# HG changeset patch
# User praveentiwari
# Date 1372745801 -19800
# Node ID 97f88ce047cfd7a8ea168b3aed0aa538ec3b7e61
# Parent  303b95a90f0a93a28d389828695b8aa0a564bcce
Removed hungarian  notation from xDST4 intrinsic code

diff -r 303b95a90f0a -r 97f88ce047cf source/common/vec/dct.inc
--- a/source/common/vec/dct.inc	Tue Jul 02 11:25:05 2013 +0530
+++ b/source/common/vec/dct.inc	Tue Jul 02 11:46:41 2013 +0530
@@ -206,17 +206,17 @@
     { 55, -84, 74, -29, 55, -84, 74, -29 },
 };
 
-void xDST4(short *pSrc, int *pDst, intptr_t nStride)
+void xDST4(short *src, int *dst, intptr_t nStride)
 {
     // Const
     __m128i c_1     = _mm_set1_epi32(1);
     __m128i c_128   = _mm_set1_epi32(128);
 
     // Load
-    __m128i T20  = _mm_loadl_epi64((__m128i*)&pSrc[0 * nStride]);
-    __m128i T21  = _mm_loadl_epi64((__m128i*)&pSrc[1 * nStride]);
-    __m128i T22  = _mm_loadl_epi64((__m128i*)&pSrc[2 * nStride]);
-    __m128i T23  = _mm_loadl_epi64((__m128i*)&pSrc[3 * nStride]);
+    __m128i T20  = _mm_loadl_epi64((__m128i*)&src[0 * nStride]);
+    __m128i T21  = _mm_loadl_epi64((__m128i*)&src[1 * nStride]);
+    __m128i T22  = _mm_loadl_epi64((__m128i*)&src[2 * nStride]);
+    __m128i T23  = _mm_loadl_epi64((__m128i*)&src[3 * nStride]);
 
     __m128i T30  = _mm_unpacklo_epi64(T20, T21);
     __m128i T31  = _mm_unpacklo_epi64(T22, T23);
@@ -250,8 +250,8 @@
     T61 = _mm_hadd_epi32(T62, T63);
     T60 = _mm_srai_epi32(_mm_add_epi32(T60, c_128), 8);
     T61 = _mm_srai_epi32(_mm_add_epi32(T61, c_128), 8);
-    _mm_store_si128((__m128i*)&pDst[0 * 4], T60);
-    _mm_store_si128((__m128i*)&pDst[1 * 4], T61);
+    _mm_store_si128((__m128i*)&dst[0 * 4], T60);
+    _mm_store_si128((__m128i*)&dst[1 * 4], T61);
 
     T60 = _mm_madd_epi16(T70, _mm_load_si128((__m128i*)tab_dst_4[2]));
     T61 = _mm_madd_epi16(T71, _mm_load_si128((__m128i*)tab_dst_4[2]));
@@ -261,8 +261,8 @@
     T61 = _mm_hadd_epi32(T62, T63);
     T60 = _mm_srai_epi32(_mm_add_epi32(T60, c_128), 8);
     T61 = _mm_srai_epi32(_mm_add_epi32(T61, c_128), 8);
-    _mm_store_si128((__m128i*)&pDst[2 * 4], T60);
-    _mm_store_si128((__m128i*)&pDst[3 * 4], T61);
+    _mm_store_si128((__m128i*)&dst[2 * 4], T60);
+    _mm_store_si128((__m128i*)&dst[3 * 4], T61);
 }
 
 #endif // INSTRSET >=4


More information about the x265-devel mailing list