Skip to content

Commit f285c5e

Browse files
Extend #1172 approach to arm
1 parent 8bf44e4 commit f285c5e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

include/xsimd/arch/xsimd_neon.hpp

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,22 @@ namespace xsimd
724724
store_complex_aligned(dst, src, A {});
725725
}
726726

727+
/*********************
728+
* store<batch_bool> *
729+
*********************/
730+
template <class T, class A, detail::enable_sized<T, 1> = 0>
731+
XSIMD_INLINE void store(batch_bool<T, A> b, bool* mem, requires_arch<neon>) noexcept
732+
{
733+
uint8x16_t val = vsubq_u8(vdupq_n_u8(0), b.data);
734+
vst1q_u8((unsigned char*)mem, val);
735+
}
736+
737+
// template <class A>
738+
// XSIMD_INLINE void store(batch_bool<float, A> b, bool* mem, requires_arch<sse2>) noexcept
739+
//{
740+
// store(batch_bool<uint32_t, A>(b.data), mem, A {});
741+
// }
742+
727743
/*******
728744
* neg *
729745
*******/

0 commit comments

Comments
 (0)