Skip to content

Commit b75c165

Browse files
Add support for xsimd::widen on ARM
1 parent 21f4b7c commit b75c165

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

include/xsimd/arch/xsimd_neon64.hpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,15 @@ namespace xsimd
15471547
{
15481548
return batch<std::complex<double>>(swizzle(self.real(), idx, A()), swizzle(self.imag(), idx, A()));
15491549
}
1550+
1551+
/*********
1552+
* widen *
1553+
*********/
1554+
template <class A, class T>
1555+
XSIMD_INLINE std::array<batch<double, A>, 2> widen(batch<float, A> const& x, requires_arch<neon>) noexcept
1556+
{
1557+
return { batch<double, A>(vcvt_f64_f32(vget_low_f32(x))), batch<double, A>(vcvt_high_f64_f32(x)) };
1558+
}
15501559
}
15511560
}
15521561

0 commit comments

Comments
 (0)