Fix compile on AIX using const pointers
Also see the discussion at noloader/POWER8-crypto#2pull/603/head
parent
9a52edcfdb
commit
e7be3a8357
|
|
@ -1314,7 +1314,7 @@ uint64x2_p8 VectorPermute64x2(const uint64x2_p8 val, const uint8x16_p8 mask)
|
|||
template <class T> static inline
|
||||
uint64x2_p8 VectorLoad64x2(const T* data, int offset)
|
||||
{
|
||||
return (uint64x2_p8)vec_ld(offset, data);
|
||||
return (uint64x2_p8)vec_ld(offset, (const uint8_t*)data);
|
||||
}
|
||||
|
||||
// Unaligned load
|
||||
|
|
@ -1322,9 +1322,9 @@ template <class T> static inline
|
|||
uint64x2_p8 VectorLoad64x2u(const T* data, int offset)
|
||||
{
|
||||
#if defined(CRYPTOPP_XLC_VERSION)
|
||||
return (uint64x2_p8)vec_xl(offset, data);
|
||||
return (uint64x2_p8)vec_xl(offset, (const uint8_t*)data);
|
||||
#else
|
||||
return (uint64x2_p8)vec_vsx_ld(offset, data);
|
||||
return (uint64x2_p8)vec_vsx_ld(offset, (const uint8_t*)data);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
@ -1332,7 +1332,7 @@ uint64x2_p8 VectorLoad64x2u(const T* data, int offset)
|
|||
template <class T> static inline
|
||||
void VectorStore64x2(const uint64x2_p8 val, T* data, int offset)
|
||||
{
|
||||
vec_st((uint8x16_p8)val, offset, data);
|
||||
vec_st((uint8x16_p8)val, offset, (uint8_t*)data);
|
||||
}
|
||||
|
||||
// Unaligned store
|
||||
|
|
|
|||
Loading…
Reference in New Issue