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
b45403ed
Commit
b45403ed
authored
Nov 17, 2017
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10102 from seiko2plus:coreVsxPacksFix
parents
3e33820e
56bda891
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
vsx_utils.hpp
modules/core/include/opencv2/core/vsx_utils.hpp
+6
-5
No files found.
modules/core/include/opencv2/core/vsx_utils.hpp
View file @
b45403ed
...
...
@@ -254,12 +254,8 @@ FORCE_INLINE(rt) fnm(const rg& a, const rg& b) \
FORCE_INLINE
(
vec_bdword2
)
vec_nor
(
const
vec_bdword2
&
a
,
const
vec_bdword2
&
b
)
{
return
vec_bdword2_c
(
__builtin_vec_nor
(
vec_dword2_c
(
a
),
vec_dword2_c
(
b
)));
}
#endif // __GNUG__ < 6
#if __GNUG__ < 5
// vec_xxpermdi in gcc4 missing little-endian supports just like clang
# define vec_permi(a, b, c) vec_xxpermdi(b, a, (3 ^ ((c & 1) << 1 | c >> 1)))
// vec_packs doesn't support double words in gcc4
// vec_packs doesn't support double words in gcc4 and old versions of gcc5
# undef vec_packs
VSX_REDIRECT_2RG
(
vec_char16
,
vec_short8
,
vec_packs
,
__builtin_vec_packs
)
VSX_REDIRECT_2RG
(
vec_uchar16
,
vec_ushort8
,
vec_packs
,
__builtin_vec_packs
)
...
...
@@ -268,6 +264,11 @@ FORCE_INLINE(rt) fnm(const rg& a, const rg& b) \
VSX_IMPL_2VRG_F
(
vec_int4
,
vec_dword2
,
"vpksdss %0,%2,%1"
,
vec_packs
)
VSX_IMPL_2VRG_F
(
vec_uint4
,
vec_udword2
,
"vpkudus %0,%2,%1"
,
vec_packs
)
#endif // __GNUG__ < 6
#if __GNUG__ < 5
// vec_xxpermdi in gcc4 missing little-endian supports just like clang
# define vec_permi(a, b, c) vec_xxpermdi(b, a, (3 ^ ((c & 1) << 1 | c >> 1)))
#else
# define vec_permi vec_xxpermdi
#endif // __GNUG__ < 5
...
...
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