Skip to content

Commit 153b0c7

Browse files
drewcassidyserge-sans-paille
authored andcommitted
Add 64-bit hadd for single-precision floats
1 parent a2be958 commit 153b0c7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/xsimd/arch/xsimd_neon64.hpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,12 @@ namespace xsimd
710710
return vaddvq_s64(arg);
711711
}
712712

713+
template <class A>
714+
inline float hadd(batch<float, A> const& arg, requires_arch<neon64>) noexcept
715+
{
716+
return vaddvq_f32(arg);
717+
}
718+
713719
template <class A>
714720
inline double hadd(batch<double, A> const& arg, requires_arch<neon64>) noexcept
715721
{

0 commit comments

Comments
 (0)