From 5a702d7d9d086f22a59686631b4a86352bc790ce Mon Sep 17 00:00:00 2001 From: Kirill Kornyakov Date: Tue, 8 Nov 2011 07:39:35 +0000 Subject: [PATCH] Optimized version of Norm functions added --- modules/core/src/stat.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/core/src/stat.cpp b/modules/core/src/stat.cpp index 6781b9d..06b5bd7 100644 --- a/modules/core/src/stat.cpp +++ b/modules/core/src/stat.cpp @@ -1166,15 +1166,15 @@ typedef int (*NormDiffFunc)(const uchar*, const uchar*, const uchar*, uchar*, in static NormFunc normTab[3][8] = { { - (NormFunc)normInf_8u, (NormFunc)normInf_8s, (NormFunc)normInf_16u, (NormFunc)normInf_16s, - (NormFunc)normInf_32s, (NormFunc)normInf_32f, (NormFunc)normInf_64f, 0 + (NormFunc)GET_OPTIMIZED(normInf_8u), (NormFunc)normInf_8s, (NormFunc)normInf_16u, (NormFunc)normInf_16s, + (NormFunc)normInf_32s, (NormFunc)GET_OPTIMIZED(normInf_32f), (NormFunc)normInf_64f, 0 }, { - (NormFunc)normL1_8u, (NormFunc)normL1_8s, (NormFunc)normL1_16u, (NormFunc)normL1_16s, - (NormFunc)normL1_32s, (NormFunc)normL1_32f, (NormFunc)normL1_64f, 0 + (NormFunc)GET_OPTIMIZED(normL1_8u), (NormFunc)normL1_8s, (NormFunc)normL1_16u, (NormFunc)normL1_16s, + (NormFunc)normL1_32s, (NormFunc)GET_OPTIMIZED(normL1_32f), (NormFunc)normL1_64f, 0 }, { - (NormFunc)normL2_8u, (NormFunc)normL2_8s, (NormFunc)normL2_16u, (NormFunc)normL2_16s, + (NormFunc)GET_OPTIMIZED(normL2_8u), (NormFunc)normL2_8s, (NormFunc)normL2_16u, (NormFunc)normL2_16s, (NormFunc)normL2_32s, (NormFunc)normL2_32f, (NormFunc)normL2_64f, 0 } }; -- 2.7.4