Skip to content

Commit 880052d

Browse files
committed
core(stat): create dispatch.cpp file
1 parent 85afbd4 commit 880052d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

modules/core/src/stat.dispatch.cpp

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// This file is part of OpenCV project.
2+
// It is subject to the license terms in the LICENSE file found in the top-level directory
3+
// of this distribution and at http://opencv.org/license.html.
4+
5+
#include "precomp.hpp"
6+
7+
#include "stat.simd.hpp"
8+
#include "stat.simd_declarations.hpp" // defines CV_CPU_DISPATCH_MODES_ALL=AVX2,...,BASELINE based on CMakeLists.txt content
9+
10+
namespace cv { namespace hal {
11+
12+
int normHamming(const uchar* a, int n)
13+
{
14+
CV_INSTRUMENT_REGION()
15+
16+
CV_CPU_DISPATCH(normHamming, (a, n),
17+
CV_CPU_DISPATCH_MODES_ALL);
18+
}
19+
20+
int normHamming(const uchar* a, const uchar* b, int n)
21+
{
22+
CV_INSTRUMENT_REGION()
23+
24+
CV_CPU_DISPATCH(normHamming, (a, b, n),
25+
CV_CPU_DISPATCH_MODES_ALL);
26+
}
27+
28+
}} //cv::hal

0 commit comments

Comments
 (0)