Skip to content

Commit e91290d

Browse files
committed
Fix batch_bool
1 parent 81879b7 commit e91290d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

include/xsimd/arch/xsimd_avx.hpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ namespace xsimd
10161016
}
10171017

10181018
// store_masked
1019-
namespace detail
1019+
namespace detail_avx
10201020
{
10211021
template <class A>
10221022
XSIMD_INLINE void maskstore(float* mem, batch_bool<float, A> const& mask, batch<float, A> const& src) noexcept
@@ -1053,7 +1053,11 @@ namespace xsimd
10531053
}
10541054
else
10551055
{
1056-
detail::maskstore(mem, mask.as_batch(), src);
1056+
using fp_t = sized_fp_t<sizeof(T)>;
1057+
detail_avx::maskstore<A>(
1058+
reinterpret_cast<fp_t*>(mem),
1059+
mask.as_batch_bool(),
1060+
bitwise_cast<fp_t>(src));
10571061
}
10581062
}
10591063

0 commit comments

Comments
 (0)