Skip to content

Commit 0854885

Browse files
committed
fixing win build
1 parent fc8a187 commit 0854885

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

include/xsimd/arch/xsimd_avx.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1484,9 +1484,9 @@ namespace xsimd
14841484
XSIMD_IF_CONSTEXPR(is_dup)
14851485
{
14861486
constexpr auto control = is_dup_low ? 0x00 : 0x11;
1487-
const auto is_dup_identity = is_dup_low ? detail::is_identity<uint32_t, V0, V1, V2, V3>() : detail::is_identity<int64_t, V4 - 4, V5 - 4, V6 - 4, V7 - 4>();
1487+
constexpr auto is_dup_identity = is_dup_low ? detail::is_identity<uint32_t, V0, V1, V2, V3>() : detail::is_identity<int64_t, V4 - 4, V5 - 4, V6 - 4, V7 - 4>();
14881488
auto split = _mm256_permute2f128_ps(self, self, control);
1489-
if (!is_dup_identity)
1489+
XSIMD_IF_CONSTEXPR(!is_dup_identity)
14901490
{
14911491
constexpr auto shuffle_mask = is_dup_low ? detail::mod_shuffle(V0, V1, V2, V3) : detail::mod_shuffle(V4 - 4, V5 - 4, V6 - 4, V7 - 4);
14921492
split = _mm256_permute_ps(split, shuffle_mask);

include/xsimd/arch/xsimd_avx2.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -902,15 +902,11 @@ namespace xsimd
902902
}
903903

904904
// swizzle (dynamic mask)
905-
906905
template <class A>
907906
XSIMD_INLINE batch<float, A> swizzle(batch<float, A> const& self, batch<uint32_t, A> mask, requires_arch<avx2>) noexcept
908907
{
909908
return swizzle(self, mask, avx {});
910-
// this does not allow duplicates in the output
911-
// return _mm256_permutevar8x32_ps(self, mask);
912909
}
913-
914910
template <class A>
915911
XSIMD_INLINE batch<double, A> swizzle(batch<double, A> const& self, batch<uint64_t, A> mask, requires_arch<avx2>) noexcept
916912
{
@@ -932,8 +928,6 @@ namespace xsimd
932928
template <class A>
933929
XSIMD_INLINE batch<uint32_t, A> swizzle(batch<uint32_t, A> const& self, batch<uint32_t, A> mask, requires_arch<avx2>) noexcept
934930
{
935-
// this does not allow duplicates in the output
936-
// return _mm256_permutevar8x32_epi32(self, mask);
937931
return swizzle(self, mask, avx {});
938932
}
939933
template <class A>

0 commit comments

Comments
 (0)