mirror of
https://github.com/opencv/opencv.git
synced 2025-06-20 01:41:14 +08:00
carotene: removed unnecessary 'register' specifier
This commit is contained in:
parent
c5f2170ce8
commit
97aaaf50b8
12
3rdparty/carotene/src/colorconvert.cpp
vendored
12
3rdparty/carotene/src/colorconvert.cpp
vendored
@ -1087,12 +1087,12 @@ inline uint8x8x3_t convertToHSV(const uint8x8_t vR, const uint8x8_t vG, const ui
|
|||||||
const s32 hrange )
|
const s32 hrange )
|
||||||
{
|
{
|
||||||
const s32 hsv_shift = 12;
|
const s32 hsv_shift = 12;
|
||||||
register const f32 vsdiv_table = f32(255 << hsv_shift);
|
const f32 vsdiv_table = f32(255 << hsv_shift);
|
||||||
register f32 vhdiv_table = f32(hrange << hsv_shift);
|
f32 vhdiv_table = f32(hrange << hsv_shift);
|
||||||
register const s32 vhrange = hrange;
|
const s32 vhrange = hrange;
|
||||||
register const s32 v0 = s32(0);
|
const s32 v0 = s32(0);
|
||||||
register const s32 vshift = s32(1 << (hsv_shift-1));
|
const s32 vshift = s32(1 << (hsv_shift-1));
|
||||||
register const s32 v6 = s32(6);
|
const s32 v6 = s32(6);
|
||||||
|
|
||||||
uint8x8_t vMin = vmin_u8(vR, vG);
|
uint8x8_t vMin = vmin_u8(vR, vG);
|
||||||
uint8x8_t vMax = vmax_u8(vR, vG);
|
uint8x8_t vMax = vmax_u8(vR, vG);
|
||||||
|
10
3rdparty/carotene/src/pyramid.cpp
vendored
10
3rdparty/carotene/src/pyramid.cpp
vendored
@ -680,12 +680,12 @@ void gaussianPyramidDown(const Size2D &srcSize,
|
|||||||
register float32x4_t vc4d64f32 asm ("q14") = vmovq_n_f32(0.0625f); //4/4/16
|
register float32x4_t vc4d64f32 asm ("q14") = vmovq_n_f32(0.0625f); //4/4/16
|
||||||
register float32x4_t vc6d64f32 asm ("q15") = vmovq_n_f32(0.09375f); //6/4/16
|
register float32x4_t vc6d64f32 asm ("q15") = vmovq_n_f32(0.09375f); //6/4/16
|
||||||
#else
|
#else
|
||||||
register float32x4_t vc6d4f32 = vmovq_n_f32(1.5f); // 6/4
|
float32x4_t vc6d4f32 = vmovq_n_f32(1.5f); // 6/4
|
||||||
register float32x4_t vc1d4f32 = vmovq_n_f32(0.25f); // 1/4
|
float32x4_t vc1d4f32 = vmovq_n_f32(0.25f); // 1/4
|
||||||
|
|
||||||
register float32x4_t vc1d64f32 = vmovq_n_f32(0.015625f); //1/4/16
|
float32x4_t vc1d64f32 = vmovq_n_f32(0.015625f); //1/4/16
|
||||||
register float32x4_t vc4d64f32 = vmovq_n_f32(0.0625f); //4/4/16
|
float32x4_t vc4d64f32 = vmovq_n_f32(0.0625f); //4/4/16
|
||||||
register float32x4_t vc6d64f32 = vmovq_n_f32(0.09375f); //6/4/16
|
float32x4_t vc6d64f32 = vmovq_n_f32(0.09375f); //6/4/16
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (size_t i = 0; i < dstSize.height; ++i)
|
for (size_t i = 0; i < dstSize.height; ++i)
|
||||||
|
4
3rdparty/carotene/src/saturate_cast.hpp
vendored
4
3rdparty/carotene/src/saturate_cast.hpp
vendored
@ -72,11 +72,11 @@ __declspec(naked) static void vcvtr_s32_f64_imp(f64 d)
|
|||||||
|
|
||||||
# if defined(__VFP_FP__) && !defined(__SOFTFP__) && !(defined _DEBUG || defined DEBUG) && !defined(__CUDACC__)
|
# if defined(__VFP_FP__) && !defined(__SOFTFP__) && !(defined _DEBUG || defined DEBUG) && !defined(__CUDACC__)
|
||||||
# define CAROTENE_ROUND_FLT(value) { \
|
# define CAROTENE_ROUND_FLT(value) { \
|
||||||
register union { f32 f; s32 i; } result; \
|
union { f32 f; s32 i; } result; \
|
||||||
asm ("ftosis %0, %1 \n" : "=w" (result.f) : "w" (value) ); \
|
asm ("ftosis %0, %1 \n" : "=w" (result.f) : "w" (value) ); \
|
||||||
return result.i; }
|
return result.i; }
|
||||||
# define CAROTENE_ROUND_DBL(value) { \
|
# define CAROTENE_ROUND_DBL(value) { \
|
||||||
register union {f32 f; s32 i;} __tegra_result; \
|
union {f32 f; s32 i;} __tegra_result; \
|
||||||
asm ( \
|
asm ( \
|
||||||
"ftosid %0, %P1\n" \
|
"ftosid %0, %P1\n" \
|
||||||
: "=w" (__tegra_result.f) \
|
: "=w" (__tegra_result.f) \
|
||||||
|
Loading…
Reference in New Issue
Block a user