mirror of
https://github.com/opencv/opencv.git
synced 2026-09-25 04:09:57 +03:00
Remove now unused GET_OPTIMIZED
This commit is contained in:
@@ -53,8 +53,6 @@
|
||||
|
||||
#include "opencv2/core/ocl.hpp"
|
||||
|
||||
#define GET_OPTIMIZED(func) (func)
|
||||
|
||||
|
||||
namespace cv {
|
||||
|
||||
|
||||
@@ -224,19 +224,19 @@ CountNonZeroFunc getCountNonZeroTab(int depth)
|
||||
{
|
||||
static CountNonZeroFunc countNonZeroTab[CV_DEPTH_MAX] =
|
||||
{
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero8u),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero8u),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero16u),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero16u),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero32s),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero32f),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero64f),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero16f),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero16f), // for bf16 it's the same code as for f16
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero8u),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero64s),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero64s),
|
||||
(CountNonZeroFunc)GET_OPTIMIZED(countNonZero32s),
|
||||
countNonZero8u,
|
||||
countNonZero8u,
|
||||
countNonZero16u,
|
||||
countNonZero16u,
|
||||
countNonZero32s,
|
||||
countNonZero32f,
|
||||
countNonZero64f,
|
||||
countNonZero16f,
|
||||
countNonZero16f, // for bf16 it's the same code as for f16
|
||||
countNonZero8u,
|
||||
countNonZero64s,
|
||||
countNonZero64s,
|
||||
countNonZero32s,
|
||||
0
|
||||
};
|
||||
|
||||
|
||||
@@ -107,8 +107,8 @@ static void patchNaNs_64f(uchar* ptr, size_t ulen, double newVal)
|
||||
|
||||
PatchNanFunc getPatchNanFunc(bool isDouble)
|
||||
{
|
||||
return isDouble ? (PatchNanFunc)GET_OPTIMIZED(patchNaNs_64f)
|
||||
: (PatchNanFunc)GET_OPTIMIZED(patchNaNs_32f);
|
||||
return isDouble ? patchNaNs_64f
|
||||
: patchNaNs_32f;
|
||||
}
|
||||
|
||||
////// finiteMask //////
|
||||
@@ -421,14 +421,14 @@ FiniteMaskFunc getFiniteMaskFunc(bool isDouble, int cn)
|
||||
{
|
||||
static FiniteMaskFunc tab[CV_DEPTH_MAX] =
|
||||
{
|
||||
(FiniteMaskFunc)GET_OPTIMIZED((finiteMask_<float, 1>)),
|
||||
(FiniteMaskFunc)GET_OPTIMIZED((finiteMask_<float, 2>)),
|
||||
(FiniteMaskFunc)GET_OPTIMIZED((finiteMask_<float, 3>)),
|
||||
(FiniteMaskFunc)GET_OPTIMIZED((finiteMask_<float, 4>)),
|
||||
(FiniteMaskFunc)GET_OPTIMIZED((finiteMask_<double, 1>)),
|
||||
(FiniteMaskFunc)GET_OPTIMIZED((finiteMask_<double, 2>)),
|
||||
(FiniteMaskFunc)GET_OPTIMIZED((finiteMask_<double, 3>)),
|
||||
(FiniteMaskFunc)GET_OPTIMIZED((finiteMask_<double, 4>)),
|
||||
finiteMask_<float, 1>,
|
||||
finiteMask_<float, 2>,
|
||||
finiteMask_<float, 3>,
|
||||
finiteMask_<float, 4>,
|
||||
finiteMask_<double, 1>,
|
||||
finiteMask_<double, 2>,
|
||||
finiteMask_<double, 3>,
|
||||
finiteMask_<double, 4>,
|
||||
};
|
||||
|
||||
int idx = (isDouble ? 4 : 0) + cn - 1;
|
||||
|
||||
@@ -94,7 +94,6 @@
|
||||
#include "opencv2/core/vsx_utils.hpp"
|
||||
#include "hal_replacement.hpp"
|
||||
|
||||
#define GET_OPTIMIZED(func) (func)
|
||||
|
||||
namespace cv
|
||||
{
|
||||
|
||||
@@ -82,8 +82,6 @@
|
||||
#include <unordered_map>
|
||||
#include <cmath>
|
||||
|
||||
#define GET_OPTIMIZED(func) (func)
|
||||
|
||||
|
||||
namespace cv {
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
#include <stack>
|
||||
#include <numeric>
|
||||
|
||||
#define GET_OPTIMIZED(func) (func)
|
||||
|
||||
/* helper tables */
|
||||
extern const uchar icvSaturate8u_cv[];
|
||||
|
||||
@@ -51,8 +51,6 @@
|
||||
|
||||
#include "opencv2/core/ocl.hpp"
|
||||
|
||||
#define GET_OPTIMIZED(func) (func)
|
||||
|
||||
|
||||
namespace cv
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user