From 390fed72c5cc5a229fb753a647f6f8eb9797adec Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Thu, 15 Nov 2018 03:11:36 -0500 Subject: Add word32 VectorStore overloads --- ppc_simd.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'ppc_simd.h') diff --git a/ppc_simd.h b/ppc_simd.h index 9c5f50fb..21395a00 100644 --- a/ppc_simd.h +++ b/ppc_simd.h @@ -311,6 +311,18 @@ inline void VectorStore(const T data, int off, byte dest[16]) #endif } +template +inline void VectorStore(const T data, word32 dest[4]) +{ + VectorStore((uint8x16_p)data, 0, (byte*)dest); +} + +template +inline void VectorStore(const T data, int off, word32 dest[4]) +{ + VectorStore((uint8x16_p)data, off, (byte*)dest); +} + /// \brief Stores a vector to a byte array /// \tparam T vector type /// \param src the vector -- cgit v1.2.1