summaryrefslogtreecommitdiff
path: root/ppc_simd.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-04-10 12:55:11 -0400
committerJeffrey Walton <noloader@gmail.com>2020-04-10 12:55:11 -0400
commit6a52804c332c93b9ea653ce556165d5c7647f720 (patch)
treed1f6cae4927f21f6b4105610b6d77da3760762d0 /ppc_simd.h
parent00c5ff73f2d425e3c7ba2245fa0683231e0bf03f (diff)
downloadcryptopp-git-6a52804c332c93b9ea653ce556165d5c7647f720.tar.gz
Fix compile on Power7
Diffstat (limited to 'ppc_simd.h')
-rw-r--r--ppc_simd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ppc_simd.h b/ppc_simd.h
index f9196a46..785acb26 100644
--- a/ppc_simd.h
+++ b/ppc_simd.h
@@ -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
}