Skip to content

Commit 65030dd

Browse files
committed
Fix set on floats
1 parent a99a1a2 commit 65030dd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

include/xsimd/arch/xsimd_neon.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -716,9 +716,10 @@ namespace xsimd
716716
}
717717

718718
template <class A>
719-
XSIMD_INLINE batch<float, A> set(batch<float, A> const&, requires_arch<neon>, float f0, float f1, float f2, float f3) noexcept
719+
XSIMD_INLINE batch<float, A> set(batch<float, A> const&, requires_arch<neon> req, float f0, float f1, float f2, float f3) noexcept
720720
{
721-
return float32x4_t { f0, f1, f2, f3 };
721+
alignas(A::alignment()) float data[] = { f0, f1, f2, f3 };
722+
return load_aligned<A>(data, {}, req);
722723
}
723724

724725
template <class A>

0 commit comments

Comments
 (0)