Skip to content

Commit cd2d6ac

Browse files
committed
Merge pull request opencv#16461 from seiko2plus:issue16455
2 parents 7e6bdba + ec03333 commit cd2d6ac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/core/include/opencv2/core/vsx_utils.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,10 @@ VSX_FINLINE(rt) fnm(const rg& a, const rg& b) \
233233
#if __GNUG__ < 5
234234
// vec_xxpermdi in gcc4 missing little-endian supports just like clang
235235
# define vec_permi(a, b, c) vec_xxpermdi(b, a, (3 ^ (((c) & 1) << 1 | (c) >> 1)))
236+
// same as vec_xxpermdi
237+
# undef vec_vbpermq
238+
VSX_IMPL_2VRG(vec_udword2, vec_uchar16, vbpermq, vec_vbpermq)
239+
VSX_IMPL_2VRG(vec_dword2, vec_char16, vbpermq, vec_vbpermq)
236240
#else
237241
# define vec_permi vec_xxpermdi
238242
#endif // __GNUG__ < 5

0 commit comments

Comments
 (0)