mirror of
https://github.com/opencv/opencv.git
synced 2025-06-09 10:40:46 +08:00
Merge pull request #19692 from seiko2plus:issue_19647
This commit is contained in:
commit
1d6a1e5f9c
@ -76,6 +76,9 @@
|
|||||||
#if defined __PPC64__ && defined __GNUC__ && defined _ARCH_PWR8 \
|
#if defined __PPC64__ && defined __GNUC__ && defined _ARCH_PWR8 \
|
||||||
&& !defined(OPENCV_SKIP_INCLUDE_ALTIVEC_H)
|
&& !defined(OPENCV_SKIP_INCLUDE_ALTIVEC_H)
|
||||||
#include <altivec.h>
|
#include <altivec.h>
|
||||||
|
#undef vector
|
||||||
|
#undef bool
|
||||||
|
#undef pixel
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CV_INLINE_ROUND_FLT)
|
#if defined(CV_INLINE_ROUND_FLT)
|
||||||
|
@ -501,7 +501,9 @@ VSX_IMPL_CONV_EVEN_2_4(vec_uint4, vec_double2, vec_ctu, vec_ctuo)
|
|||||||
return fn2(a); \
|
return fn2(a); \
|
||||||
}
|
}
|
||||||
VSX_IMPL_CONV_2VARIANT(vec_int4, vec_float4, vec_cts, vec_cts)
|
VSX_IMPL_CONV_2VARIANT(vec_int4, vec_float4, vec_cts, vec_cts)
|
||||||
|
VSX_IMPL_CONV_2VARIANT(vec_uint4, vec_float4, vec_ctu, vec_ctu)
|
||||||
VSX_IMPL_CONV_2VARIANT(vec_float4, vec_int4, vec_ctf, vec_ctf)
|
VSX_IMPL_CONV_2VARIANT(vec_float4, vec_int4, vec_ctf, vec_ctf)
|
||||||
|
VSX_IMPL_CONV_2VARIANT(vec_float4, vec_uint4, vec_ctf, vec_ctf)
|
||||||
// define vec_cts for converting double precision to signed doubleword
|
// define vec_cts for converting double precision to signed doubleword
|
||||||
// which isn't compatible with xlc but its okay since Eigen only uses it for gcc
|
// which isn't compatible with xlc but its okay since Eigen only uses it for gcc
|
||||||
VSX_IMPL_CONV_2VARIANT(vec_dword2, vec_double2, vec_cts, vec_ctsl)
|
VSX_IMPL_CONV_2VARIANT(vec_dword2, vec_double2, vec_cts, vec_ctsl)
|
||||||
|
Loading…
Reference in New Issue
Block a user