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
3e0c72ea
Commit
3e0c72ea
authored
Oct 26, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core(ipp): disable SSE4.2 meanStdDev() optimization for CV_32F
parent
defeda2f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
mean.cpp
modules/core/src/mean.cpp
+14
-1
No files found.
modules/core/src/mean.cpp
View file @
3e0c72ea
...
...
@@ -674,10 +674,23 @@ static bool ipp_meanStdDev(Mat& src, OutputArray _mean, OutputArray _sdv, Mat& m
if
(
cn
>
1
)
return
false
;
#endif
#if IPP_VERSION_X100 < 201901
#if IPP_VERSION_X100
>= 201900 && IPP_VERSION_X100
< 201901
// IPP_DISABLE: 32f C3C functions can read outside of allocated memory
if
(
cn
>
1
&&
src
.
depth
()
==
CV_32F
)
return
false
;
// SSE4.2 buffer overrun
#if defined(_WIN32) && !defined(_WIN64)
// IPPICV doesn't have AVX2 in 32-bit builds
// However cv::ipp::getIppTopFeatures() may return AVX2 value on AVX2 capable H/W
// details #12959
#else
if
(
cv
::
ipp
::
getIppTopFeatures
()
==
ippCPUID_SSE42
)
// Linux x64 + OPENCV_IPP=SSE42 is affected too
#endif
{
if
(
src
.
depth
()
==
CV_32F
&&
src
.
dims
>
1
&&
src
.
size
[
src
.
dims
-
1
]
==
6
)
return
false
;
}
#endif
size_t
total_size
=
src
.
total
();
...
...
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