Skip to content

Commit 2a1e24d

Browse files
committed
Fix types
1 parent 41bd8a9 commit 2a1e24d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/xsimd/arch/xsimd_neon.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3382,15 +3382,15 @@ namespace xsimd
33823382
XSIMD_INLINE size_t count(batch_bool<T, A> const& self, requires_arch<neon>) noexcept
33833383
{
33843384
uint16x4_t narrowed = vmovn_u32(self);
3385-
uint64_t result = vget_lane_u64(vreinterpret_u64_u8(narrowed), 0);
3385+
uint64_t result = vget_lane_u64(vreinterpret_u64_u16(narrowed), 0);
33863386
return xsimd::detail::popcount(result) / 16;
33873387
}
33883388

33893389
template <class A, class T, detail::enable_sized_t<T, 8> = 0>
33903390
XSIMD_INLINE size_t count(batch_bool<T, A> const& self, requires_arch<neon>) noexcept
33913391
{
33923392
uint32x2_t narrowed = vmovn_u64(self);
3393-
uint64_t result = vget_lane_u64(vreinterpret_u64_u8(narrowed), 0);
3393+
uint64_t result = vget_lane_u64(vreinterpret_u64_u32(narrowed), 0);
33943394
return xsimd::detail::popcount(result) / 32;
33953395
}
33963396

0 commit comments

Comments
 (0)