mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-20 00:27:48 +08:00
NEON: fix ploaddup
This commit is contained in:
parent
179d42bb2b
commit
85c137ccd4
@ -191,14 +191,14 @@ template<> EIGEN_STRONG_INLINE Packet4f ploaddup<Packet4f>(const float* from)
|
|||||||
{
|
{
|
||||||
float32x2_t lo, hi;
|
float32x2_t lo, hi;
|
||||||
lo = vdup_n_f32(*from);
|
lo = vdup_n_f32(*from);
|
||||||
hi = vdup_n_f32(*from);
|
hi = vdup_n_f32(*(from+1));
|
||||||
return vcombine_f32(lo, hi);
|
return vcombine_f32(lo, hi);
|
||||||
}
|
}
|
||||||
template<> EIGEN_STRONG_INLINE Packet4i ploaddup<Packet4i>(const int* from)
|
template<> EIGEN_STRONG_INLINE Packet4i ploaddup<Packet4i>(const int* from)
|
||||||
{
|
{
|
||||||
int32x2_t lo, hi;
|
int32x2_t lo, hi;
|
||||||
lo = vdup_n_s32(*from);
|
lo = vdup_n_s32(*from);
|
||||||
hi = vdup_n_s32(*from);
|
hi = vdup_n_s32(*(from+1));
|
||||||
return vcombine_s32(lo, hi);
|
return vcombine_s32(lo, hi);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user