mirror of
https://github.com/opencv/opencv.git
synced 2025-06-17 15:20:51 +08:00
core(stat): register dispatched code, fix build
This commit is contained in:
parent
6a6222d21c
commit
c45d3568ae
@ -1,6 +1,7 @@
|
|||||||
set(the_description "The Core Functionality")
|
set(the_description "The Core Functionality")
|
||||||
|
|
||||||
ocv_add_dispatched_file(mathfuncs_core SSE2 AVX AVX2)
|
ocv_add_dispatched_file(mathfuncs_core SSE2 AVX AVX2)
|
||||||
|
ocv_add_dispatched_file(stat SSE4_2 AVX AVX2)
|
||||||
|
|
||||||
ocv_add_module(core
|
ocv_add_module(core
|
||||||
"${OPENCV_HAL_LINKER_LIBS}"
|
"${OPENCV_HAL_LINKER_LIBS}"
|
||||||
|
@ -4233,7 +4233,7 @@ cvNorm( const void* imgA, const void* imgB, int normType, const void* maskarr )
|
|||||||
|
|
||||||
namespace cv { namespace hal {
|
namespace cv { namespace hal {
|
||||||
|
|
||||||
static const uchar popCountTable[] =
|
extern const uchar popCountTable[256] =
|
||||||
{
|
{
|
||||||
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5,
|
0, 1, 1, 2, 1, 2, 2, 3, 1, 2, 2, 3, 2, 3, 3, 4, 1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5,
|
||||||
1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6,
|
1, 2, 2, 3, 2, 3, 3, 4, 2, 3, 3, 4, 3, 4, 4, 5, 2, 3, 3, 4, 3, 4, 4, 5, 3, 4, 4, 5, 4, 5, 5, 6,
|
||||||
|
@ -5,6 +5,9 @@
|
|||||||
#include "opencv2/core/hal/intrin.hpp"
|
#include "opencv2/core/hal/intrin.hpp"
|
||||||
|
|
||||||
namespace cv { namespace hal {
|
namespace cv { namespace hal {
|
||||||
|
|
||||||
|
extern const uchar popCountTable[256];
|
||||||
|
|
||||||
CV_CPU_OPTIMIZATION_NAMESPACE_BEGIN
|
CV_CPU_OPTIMIZATION_NAMESPACE_BEGIN
|
||||||
|
|
||||||
// forward declarations
|
// forward declarations
|
||||||
|
Loading…
Reference in New Issue
Block a user