From: Kirill Kornyakov Date: Wed, 23 Nov 2011 10:16:00 +0000 (+0000) Subject: Optimized version of CountNonZero functions added X-Git-Tag: accepted/2.0/20130307.220821~1598 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d168c2b902251fe6472178c6f331136b6147f8de;p=profile%2Fivi%2Fopencv.git Optimized version of CountNonZero functions added --- diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 67b48d5..c9fcd83 100644 --- a/modules/core/src/stat.cpp +++ b/modules/core/src/stat.cpp @@ -232,9 +232,9 @@ typedef int (*CountNonZeroFunc)(const uchar*, int); static CountNonZeroFunc countNonZeroTab[] = { - (CountNonZeroFunc)countNonZero8u, (CountNonZeroFunc)countNonZero8u, - (CountNonZeroFunc)countNonZero16u, (CountNonZeroFunc)countNonZero16u, - (CountNonZeroFunc)countNonZero32s, (CountNonZeroFunc)countNonZero32f, + (CountNonZeroFunc)GET_OPTIMIZED(countNonZero8u), (CountNonZeroFunc)(countNonZero8u), + (CountNonZeroFunc)(countNonZero16u), (CountNonZeroFunc)(countNonZero16u), + (CountNonZeroFunc)(countNonZero32s), (CountNonZeroFunc)GET_OPTIMIZED(countNonZero32f), (CountNonZeroFunc)countNonZero64f, 0 };