Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
97aaaf50
Commit
97aaaf50
authored
Aug 23, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
carotene: removed unnecessary 'register' specifier
parent
c5f2170c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
colorconvert.cpp
3rdparty/carotene/src/colorconvert.cpp
+6
-6
pyramid.cpp
3rdparty/carotene/src/pyramid.cpp
+5
-5
saturate_cast.hpp
3rdparty/carotene/src/saturate_cast.hpp
+2
-2
No files found.
3rdparty/carotene/src/colorconvert.cpp
View file @
97aaaf50
...
...
@@ -1087,12 +1087,12 @@ inline uint8x8x3_t convertToHSV(const uint8x8_t vR, const uint8x8_t vG, const ui
const
s32
hrange
)
{
const
s32
hsv_shift
=
12
;
register
const
f32
vsdiv_table
=
f32
(
255
<<
hsv_shift
);
register
f32
vhdiv_table
=
f32
(
hrange
<<
hsv_shift
);
register
const
s32
vhrange
=
hrange
;
register
const
s32
v0
=
s32
(
0
);
register
const
s32
vshift
=
s32
(
1
<<
(
hsv_shift
-
1
));
register
const
s32
v6
=
s32
(
6
);
const
f32
vsdiv_table
=
f32
(
255
<<
hsv_shift
);
f32
vhdiv_table
=
f32
(
hrange
<<
hsv_shift
);
const
s32
vhrange
=
hrange
;
const
s32
v0
=
s32
(
0
);
const
s32
vshift
=
s32
(
1
<<
(
hsv_shift
-
1
));
const
s32
v6
=
s32
(
6
);
uint8x8_t
vMin
=
vmin_u8
(
vR
,
vG
);
uint8x8_t
vMax
=
vmax_u8
(
vR
,
vG
);
...
...
3rdparty/carotene/src/pyramid.cpp
View file @
97aaaf50
...
...
@@ -680,12 +680,12 @@ void gaussianPyramidDown(const Size2D &srcSize,
register
float32x4_t
vc4d64f32
asm
(
"q14"
)
=
vmovq_n_f32
(
0.0625
f
);
//4/4/16
register
float32x4_t
vc6d64f32
asm
(
"q15"
)
=
vmovq_n_f32
(
0.09375
f
);
//6/4/16
#else
register
float32x4_t
vc6d4f32
=
vmovq_n_f32
(
1.5
f
);
// 6/4
register
float32x4_t
vc1d4f32
=
vmovq_n_f32
(
0.25
f
);
// 1/4
float32x4_t
vc6d4f32
=
vmovq_n_f32
(
1.5
f
);
// 6/4
float32x4_t
vc1d4f32
=
vmovq_n_f32
(
0.25
f
);
// 1/4
register
float32x4_t
vc1d64f32
=
vmovq_n_f32
(
0.015625
f
);
//1/4/16
register
float32x4_t
vc4d64f32
=
vmovq_n_f32
(
0.0625
f
);
//4/4/16
register
float32x4_t
vc6d64f32
=
vmovq_n_f32
(
0.09375
f
);
//6/4/16
float32x4_t
vc1d64f32
=
vmovq_n_f32
(
0.015625
f
);
//1/4/16
float32x4_t
vc4d64f32
=
vmovq_n_f32
(
0.0625
f
);
//4/4/16
float32x4_t
vc6d64f32
=
vmovq_n_f32
(
0.09375
f
);
//6/4/16
#endif
for
(
size_t
i
=
0
;
i
<
dstSize
.
height
;
++
i
)
...
...
3rdparty/carotene/src/saturate_cast.hpp
View file @
97aaaf50
...
...
@@ -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__)
# 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) ); \
return result.i; }
# define CAROTENE_ROUND_DBL(value) { \
register union {f32 f; s32 i;} __tegra_result;
\
union {f32 f; s32 i;} __tegra_result;
\
asm ( \
"ftosid %0, %P1\n" \
: "=w" (__tegra_result.f) \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment