Add word32 VectorStore overloads

pull/748/head
Jeffrey Walton 2018-11-15 03:11:36 -05:00
parent 10f85d6596
commit 390fed72c5
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 12 additions and 0 deletions

View File

@ -311,6 +311,18 @@ inline void VectorStore(const T data, int off, byte dest[16])
#endif #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 /// \brief Stores a vector to a byte array
/// \tparam T vector type /// \tparam T vector type
/// \param src the vector /// \param src the vector