mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-01 16:24:28 +08:00
Add masked pstoreu for Packet16h
This commit is contained in:
parent
b4010f02f9
commit
96e30e936a
@ -611,6 +611,11 @@ template<> EIGEN_STRONG_INLINE void pstoreu<half>(Eigen::half* to, const Packet1
|
|||||||
_mm256_storeu_si256((__m256i*)(void*)to, from.x);
|
_mm256_storeu_si256((__m256i*)(void*)to, from.x);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template<> EIGEN_STRONG_INLINE void pstoreu<half>(Eigen::half* to, const Packet16h& from, int16_t umask) {
|
||||||
|
__mmask16 mask = static_cast<__mmask16>(umask);
|
||||||
|
_mm512_mask_storeu_epi16((__m256i*)(void*)to, mask, from.x);
|
||||||
|
}
|
||||||
|
|
||||||
template<> EIGEN_STRONG_INLINE Packet16h
|
template<> EIGEN_STRONG_INLINE Packet16h
|
||||||
ploaddup<Packet16h>(const Eigen::half* from) {
|
ploaddup<Packet16h>(const Eigen::half* from) {
|
||||||
Packet16h result;
|
Packet16h result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user