From d168c2b902251fe6472178c6f331136b6147f8de Mon Sep 17 00:00:00 2001 From: Kirill Kornyakov Date: Wed, 23 Nov 2011 10:16:00 +0000 Subject: [PATCH] Optimized version of CountNonZero functions added --- modules/core/src/stat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 67b48d5efb..c9fcd831d2 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 }; -- GitLab