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
4fe900c3
Commit
4fe900c3
authored
Aug 06, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12162 from alalek:fix_intrin_12146
parents
6500700d
5c3880d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
intrin.hpp
modules/core/include/opencv2/core/hal/intrin.hpp
+12
-0
No files found.
modules/core/include/opencv2/core/hal/intrin.hpp
View file @
4fe900c3
...
@@ -296,11 +296,17 @@ template<typename _Tp> struct V_RegTraits
...
@@ -296,11 +296,17 @@ template<typename _Tp> struct V_RegTraits
#endif
#endif
#if CV_SIMD512 && (!defined(CV__SIMD_FORCE_WIDTH) || CV__SIMD_FORCE_WIDTH == 512)
#if CV_SIMD512 && (!defined(CV__SIMD_FORCE_WIDTH) || CV__SIMD_FORCE_WIDTH == 512)
#define CV__SIMD_NAMESPACE simd512
namespace
CV__SIMD_NAMESPACE
{
#define CV_SIMD 1
#define CV_SIMD 1
#define CV_SIMD_64F CV_SIMD512_64F
#define CV_SIMD_64F CV_SIMD512_64F
#define CV_SIMD_WIDTH 64
#define CV_SIMD_WIDTH 64
// TODO typedef v_uint8 / v_int32 / etc types here
// TODO typedef v_uint8 / v_int32 / etc types here
}
// namespace
using
namespace
CV__SIMD_NAMESPACE
;
#elif CV_SIMD256 && (!defined(CV__SIMD_FORCE_WIDTH) || CV__SIMD_FORCE_WIDTH == 256)
#elif CV_SIMD256 && (!defined(CV__SIMD_FORCE_WIDTH) || CV__SIMD_FORCE_WIDTH == 256)
#define CV__SIMD_NAMESPACE simd256
namespace
CV__SIMD_NAMESPACE
{
#define CV_SIMD 1
#define CV_SIMD 1
#define CV_SIMD_64F CV_SIMD256_64F
#define CV_SIMD_64F CV_SIMD256_64F
#define CV_SIMD_WIDTH 32
#define CV_SIMD_WIDTH 32
...
@@ -323,7 +329,11 @@ template<typename _Tp> struct V_RegTraits
...
@@ -323,7 +329,11 @@ template<typename _Tp> struct V_RegTraits
CV_INTRIN_DEFINE_WIDE_INTRIN_ALL_TYPES
(
v256
)
CV_INTRIN_DEFINE_WIDE_INTRIN_ALL_TYPES
(
v256
)
CV_INTRIN_DEFINE_WIDE_INTRIN
(
double
,
v_float64
,
f64
,
v256
,
load
)
CV_INTRIN_DEFINE_WIDE_INTRIN
(
double
,
v_float64
,
f64
,
v256
,
load
)
inline
void
vx_cleanup
()
{
v256_cleanup
();
}
inline
void
vx_cleanup
()
{
v256_cleanup
();
}
}
// namespace
using
namespace
CV__SIMD_NAMESPACE
;
#elif (CV_SIMD128 || CV_SIMD128_CPP) && (!defined(CV__SIMD_FORCE_WIDTH) || CV__SIMD_FORCE_WIDTH == 128)
#elif (CV_SIMD128 || CV_SIMD128_CPP) && (!defined(CV__SIMD_FORCE_WIDTH) || CV__SIMD_FORCE_WIDTH == 128)
#define CV__SIMD_NAMESPACE simd128
namespace
CV__SIMD_NAMESPACE
{
#define CV_SIMD CV_SIMD128
#define CV_SIMD CV_SIMD128
#define CV_SIMD_64F CV_SIMD128_64F
#define CV_SIMD_64F CV_SIMD128_64F
#define CV_SIMD_WIDTH 16
#define CV_SIMD_WIDTH 16
...
@@ -348,6 +358,8 @@ template<typename _Tp> struct V_RegTraits
...
@@ -348,6 +358,8 @@ template<typename _Tp> struct V_RegTraits
CV_INTRIN_DEFINE_WIDE_INTRIN
(
double
,
v_float64
,
f64
,
v
,
load
)
CV_INTRIN_DEFINE_WIDE_INTRIN
(
double
,
v_float64
,
f64
,
v
,
load
)
#endif
#endif
inline
void
vx_cleanup
()
{
v_cleanup
();
}
inline
void
vx_cleanup
()
{
v_cleanup
();
}
}
// namespace
using
namespace
CV__SIMD_NAMESPACE
;
#endif
#endif
inline
unsigned
int
trailingZeros32
(
unsigned
int
value
)
{
inline
unsigned
int
trailingZeros32
(
unsigned
int
value
)
{
...
...
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