diff options
author | Jeffrey Walton <noloader@gmail.com> | 2020-04-10 12:55:11 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2020-04-10 12:55:11 -0400 |
commit | 6a52804c332c93b9ea653ce556165d5c7647f720 (patch) | |
tree | d1f6cae4927f21f6b4105610b6d77da3760762d0 | |
parent | 00c5ff73f2d425e3c7ba2245fa0683231e0bf03f (diff) | |
download | cryptopp-git-6a52804c332c93b9ea653ce556165d5c7647f720.tar.gz |
Fix compile on Power7
-rw-r--r-- | ppc_simd.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -2371,18 +2371,18 @@ template <unsigned int N> inline uint32x4_p VecSplatElement64(const uint32x4_p val)
{
#if defined(__VSX__) || defined(_ARCH_PWR8)
- return vec_splat((uint64x2_p)val, N);
+ return (uint32x4_p)vec_splat((uint64x2_p)val, N);
#else
enum {E=N&1};
if (E == 0)
{
const uint8x16_p m = {0,1,2,3, 4,5,6,7, 0,1,2,3, 4,5,6,7};
- return vec_perm(val, val, m);
+ return (uint32x4_p)vec_perm(val, val, m);
}
else // (E == 1)
{
const uint8x16_p m = {8,9,10,11, 12,13,14,15, 8,9,10,11, 12,13,14,15};
- return vec_perm(val, val, m);
+ return (uint32x4_p)vec_perm(val, val, m);
}
#endif
}
|