diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-11-15 03:11:36 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-11-15 03:11:36 -0500 |
commit | 390fed72c5cc5a229fb753a647f6f8eb9797adec (patch) | |
tree | 389f4c8c86f46683d442f1038b44cf3096263c80 /ppc_simd.h | |
parent | 10f85d65967bbe15ad807ee214fdf4babec1a991 (diff) | |
download | cryptopp-git-390fed72c5cc5a229fb753a647f6f8eb9797adec.tar.gz |
Add word32 VectorStore overloads
Diffstat (limited to 'ppc_simd.h')
-rw-r--r-- | ppc_simd.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -311,6 +311,18 @@ inline void VectorStore(const T data, int off, byte dest[16]) #endif
}
+template<class T>
+inline void VectorStore(const T data, word32 dest[4])
+{
+ VectorStore((uint8x16_p)data, 0, (byte*)dest);
+}
+
+template<class T>
+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
|