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
b66c349b
Commit
b66c349b
authored
7 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core(stat): add required CV_AVX_GUARD
Added guard with 'vzeroupper' instruction
parent
c45d3568
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
cv_cpu_dispatch.h
modules/core/include/opencv2/core/cv_cpu_dispatch.h
+6
-0
stat.simd.hpp
modules/core/src/stat.simd.hpp
+4
-0
No files found.
modules/core/include/opencv2/core/cv_cpu_dispatch.h
View file @
b66c349b
...
...
@@ -111,6 +111,12 @@ struct VZeroUpperGuard {
#define __CV_AVX_GUARD VZeroUpperGuard __vzeroupper_guard;
#endif
#ifdef __CV_AVX_GUARD
#define CV_AVX_GUARD __CV_AVX_GUARD
#else
#define CV_AVX_GUARD
#endif
#endif // __OPENCV_BUILD
...
...
This diff is collapsed.
Click to expand it.
modules/core/src/stat.simd.hpp
View file @
b66c349b
...
...
@@ -28,6 +28,8 @@ static inline int _mm256_extract_epi32_(__m256i reg, const int i)
int
normHamming
(
const
uchar
*
a
,
int
n
)
{
CV_AVX_GUARD
;
int
i
=
0
;
int
result
=
0
;
#if CV_AVX2
...
...
@@ -94,6 +96,8 @@ int normHamming(const uchar* a, int n)
int
normHamming
(
const
uchar
*
a
,
const
uchar
*
b
,
int
n
)
{
CV_AVX_GUARD
;
int
i
=
0
;
int
result
=
0
;
#if CV_AVX2
...
...
This diff is collapsed.
Click to expand it.
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