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
1b40528e
Commit
1b40528e
authored
5 years ago
by
Vitaly Tuzov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for AVX2 implementation of v_check_any(), v_check_all() intrinsics
parent
824465ea
No related merge requests found
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
12 deletions
+9
-12
intrin_avx.hpp
modules/core/include/opencv2/core/hal/intrin_avx.hpp
+9
-12
No files found.
modules/core/include/opencv2/core/hal/intrin_avx.hpp
View file @
1b40528e
...
...
@@ -1231,19 +1231,16 @@ inline int v_signmask(const v_int16x16& a)
inline
int
v_signmask
(
const
v_uint16x16
&
a
)
{
return
v_signmask
(
v_reinterpret_as_s16
(
a
));
}
inline
int
v_signmask
(
const
v_int32x8
&
a
)
{
v_int16x16
a16
=
v_pack
(
a
,
a
);
return
v_signmask
(
v_pack
(
a16
,
a16
))
&
0xFF
;
}
inline
int
v_signmask
(
const
v_uint32x8
&
a
)
{
return
v_signmask
(
v_reinterpret_as_s32
(
a
));
}
inline
int
v_signmask
(
const
v_float32x8
&
a
)
{
return
_mm256_movemask_ps
(
a
.
val
);
}
inline
int
v_signmask
(
const
v_float64x4
&
a
)
{
return
_mm256_movemask_pd
(
a
.
val
);
}
inline
int
v_signmask
(
const
v_int32x8
&
a
)
{
return
v_signmask
(
v_reinterpret_as_f32
(
a
));
}
inline
int
v_signmask
(
const
v_uint32x8
&
a
)
{
return
v_signmask
(
v_reinterpret_as_f32
(
a
));
}
inline
int
v_scan_forward
(
const
v_int8x32
&
a
)
{
return
trailingZeros32
(
v_signmask
(
v_reinterpret_as_s8
(
a
)));
}
inline
int
v_scan_forward
(
const
v_uint8x32
&
a
)
{
return
trailingZeros32
(
v_signmask
(
v_reinterpret_as_s8
(
a
)));
}
inline
int
v_scan_forward
(
const
v_int16x16
&
a
)
{
return
trailingZeros32
(
v_signmask
(
v_reinterpret_as_s8
(
a
)))
/
2
;
}
...
...
@@ -1270,10 +1267,10 @@ inline int v_scan_forward(const v_float64x4& a) { return trailingZeros32(v_signm
OPENCV_HAL_IMPL_AVX_CHECK
(
v_uint8x32
,
OPENCV_HAL_1ST
,
-
1
)
OPENCV_HAL_IMPL_AVX_CHECK
(
v_int8x32
,
OPENCV_HAL_1ST
,
-
1
)
OPENCV_HAL_IMPL_AVX_CHECK
(
v_uint16x16
,
OPENCV_HAL_AND
,
(
int
)
0xaaaa
)
OPENCV_HAL_IMPL_AVX_CHECK
(
v_int16x16
,
OPENCV_HAL_AND
,
(
int
)
0xaaaa
)
OPENCV_HAL_IMPL_AVX_CHECK
(
v_uint32x8
,
OPENCV_HAL_AND
,
(
int
)
0x8888
)
OPENCV_HAL_IMPL_AVX_CHECK
(
v_int32x8
,
OPENCV_HAL_AND
,
(
int
)
0x8888
)
OPENCV_HAL_IMPL_AVX_CHECK
(
v_uint16x16
,
OPENCV_HAL_AND
,
(
int
)
0xaaaa
aaaa
)
OPENCV_HAL_IMPL_AVX_CHECK
(
v_int16x16
,
OPENCV_HAL_AND
,
(
int
)
0xaaaa
aaaa
)
OPENCV_HAL_IMPL_AVX_CHECK
(
v_uint32x8
,
OPENCV_HAL_AND
,
(
int
)
0x8888
8888
)
OPENCV_HAL_IMPL_AVX_CHECK
(
v_int32x8
,
OPENCV_HAL_AND
,
(
int
)
0x8888
8888
)
#define OPENCV_HAL_IMPL_AVX_CHECK_FLT(_Tpvec, allmask) \
inline bool v_check_all(const _Tpvec& a) \
...
...
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