Commit dbdc476b authored by vbystricky's avatar vbystricky

Check results of ipp function

parent 38913bf5
...@@ -2799,11 +2799,11 @@ static double dotProd_8u(const uchar* src1, const uchar* src2, int len) ...@@ -2799,11 +2799,11 @@ static double dotProd_8u(const uchar* src1, const uchar* src2, int len)
{ {
double r = 0; double r = 0;
#if ARITHM_USE_IPP #if ARITHM_USE_IPP
ippiDotProd_8u64f_C1R(src1, (int)(len*sizeof(src1[0])), if (0 <= ippiDotProd_8u64f_C1R(src1, (int)(len*sizeof(src1[0])),
src2, (int)(len*sizeof(src2[0])), src2, (int)(len*sizeof(src2[0])),
ippiSize(len, 1), &r); ippiSize(len, 1), &r))
return r; return r;
#else #endif
int i = 0; int i = 0;
#if CV_SSE2 #if CV_SSE2
...@@ -2849,7 +2849,6 @@ static double dotProd_8u(const uchar* src1, const uchar* src2, int len) ...@@ -2849,7 +2849,6 @@ static double dotProd_8u(const uchar* src1, const uchar* src2, int len)
} }
#endif #endif
return r + dotProd_(src1, src2, len - i); return r + dotProd_(src1, src2, len - i);
#endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment