[x265] [PATCH] xGetSSE4Help cleanup
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Jul 12 11:52:17 CEST 2013
# HG changeset patch
# User praveentiwari
# Date 1373622720 -19800
# Node ID 2ec90171e89fc0240d15c111ce33eff5b9cc1118
# Parent 353407816249ccd3660e63429309e6fe6fd81d14
xGetSSE4Help cleanup
diff -r 353407816249 -r 2ec90171e89f source/Lib/TLibCommon/TComRdCost.cpp
--- a/source/Lib/TLibCommon/TComRdCost.cpp Fri Jul 12 15:14:46 2013 +0530
+++ b/source/Lib/TLibCommon/TComRdCost.cpp Fri Jul 12 15:22:00 2013 +0530
@@ -763,27 +763,27 @@
}
template<typename T1, typename T2>
-UInt xGetSSE4Help(T1* piOrg, Int iStrideOrg, T2* piCur, Int iStrideCur, Int iRows, UInt uiShift)
+UInt xGetSSE4Help(T1* org, Int strideOrg, T2* cur, Int strideCur, Int rows, UInt shift)
{
- UInt uiSum = 0;
- Int iTemp;
+ UInt sum = 0;
+ Int temp;
- for (; iRows != 0; iRows--)
+ for (; rows != 0; rows--)
{
- iTemp = piOrg[0] - piCur[0];
- uiSum += (iTemp * iTemp) >> uiShift;
- iTemp = piOrg[1] - piCur[1];
- uiSum += (iTemp * iTemp) >> uiShift;
- iTemp = piOrg[2] - piCur[2];
- uiSum += (iTemp * iTemp) >> uiShift;
- iTemp = piOrg[3] - piCur[3];
- uiSum += (iTemp * iTemp) >> uiShift;
+ temp = org[0] - cur[0];
+ sum += (temp * temp) >> shift;
+ temp = org[1] - cur[1];
+ sum += (temp * temp) >> shift;
+ temp = org[2] - cur[2];
+ sum += (temp * temp) >> shift;
+ temp = org[3] - cur[3];
+ sum += (temp * temp) >> shift;
- piOrg += iStrideOrg;
- piCur += iStrideCur;
+ org += strideOrg;
+ cur += strideCur;
}
- return uiSum;
+ return sum;
}
UInt TComRdCost::xGetSSE4(DistParam* pcDtParam)
More information about the x265-devel
mailing list