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
5ac55fc1
Commit
5ac55fc1
authored
Jun 20, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
core: eliminate AVX512 build warnings
from MSVS2017 and GCC8 -O1 mode
parent
264679a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
intrin_avx512.hpp
modules/core/include/opencv2/core/hal/intrin_avx512.hpp
+8
-2
sumpixels.avx512_skx.cpp
modules/imgproc/src/sumpixels.avx512_skx.cpp
+3
-0
No files found.
modules/core/include/opencv2/core/hal/intrin_avx512.hpp
View file @
5ac55fc1
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
#ifndef OPENCV_HAL_INTRIN_AVX512_HPP
#ifndef OPENCV_HAL_INTRIN_AVX512_HPP
#define OPENCV_HAL_INTRIN_AVX512_HPP
#define OPENCV_HAL_INTRIN_AVX512_HPP
#if defined(_MSC_VER) && (_MSC_VER < 1920
/*MSVS2019*/
)
# pragma warning(disable:4146) // unary minus operator applied to unsigned type, result still unsigned
# pragma warning(disable:4309) // 'argument': truncation of constant value
# pragma warning(disable:4310) // cast truncates constant value
#endif
#define CVT_ROUND_MODES_IMPLEMENTED 0
#define CVT_ROUND_MODES_IMPLEMENTED 0
#define CV_SIMD512 1
#define CV_SIMD512 1
...
@@ -1599,13 +1605,13 @@ inline v_float64x8 v_lut(const double* tab, const v_int32x16& idxvec)
...
@@ -1599,13 +1605,13 @@ inline v_float64x8 v_lut(const double* tab, const v_int32x16& idxvec)
inline
void
v_lut_deinterleave
(
const
float
*
tab
,
const
v_int32x16
&
idxvec
,
v_float32x16
&
x
,
v_float32x16
&
y
)
inline
void
v_lut_deinterleave
(
const
float
*
tab
,
const
v_int32x16
&
idxvec
,
v_float32x16
&
x
,
v_float32x16
&
y
)
{
{
x
.
val
=
_mm512_i32gather_ps
(
idxvec
.
val
,
tab
,
4
);
x
.
val
=
_mm512_i32gather_ps
(
idxvec
.
val
,
tab
,
4
);
y
.
val
=
_mm512_i32gather_ps
(
idxvec
.
val
,
tab
+
1
,
4
);
y
.
val
=
_mm512_i32gather_ps
(
idxvec
.
val
,
&
tab
[
1
]
,
4
);
}
}
inline
void
v_lut_deinterleave
(
const
double
*
tab
,
const
v_int32x16
&
idxvec
,
v_float64x8
&
x
,
v_float64x8
&
y
)
inline
void
v_lut_deinterleave
(
const
double
*
tab
,
const
v_int32x16
&
idxvec
,
v_float64x8
&
x
,
v_float64x8
&
y
)
{
{
x
.
val
=
_mm512_i32gather_pd
(
_v512_extract_low
(
idxvec
.
val
),
tab
,
8
);
x
.
val
=
_mm512_i32gather_pd
(
_v512_extract_low
(
idxvec
.
val
),
tab
,
8
);
y
.
val
=
_mm512_i32gather_pd
(
_v512_extract_low
(
idxvec
.
val
),
tab
+
1
,
8
);
y
.
val
=
_mm512_i32gather_pd
(
_v512_extract_low
(
idxvec
.
val
),
&
tab
[
1
]
,
8
);
}
}
inline
v_int8x64
v_interleave_pairs
(
const
v_int8x64
&
vec
)
inline
v_int8x64
v_interleave_pairs
(
const
v_int8x64
&
vec
)
...
...
modules/imgproc/src/sumpixels.avx512_skx.cpp
View file @
5ac55fc1
...
@@ -6,6 +6,9 @@
...
@@ -6,6 +6,9 @@
#include "precomp.hpp"
#include "precomp.hpp"
#include "sumpixels.hpp"
#include "sumpixels.hpp"
#include "opencv2/core/hal/intrin.hpp"
namespace
cv
{
namespace
cv
{
namespace
{
// Anonymous namespace to avoid exposing the implementation classes
namespace
{
// Anonymous namespace to avoid exposing the implementation classes
...
...
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