Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
serge-sans-paille committed Sep 17, 2024
1 parent 75f70c7 commit 03c6ff4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions include/xsimd/arch/generic/xsimd_generic_logical.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ namespace xsimd
#ifdef builtin_popcount
return builtin_popcount(m);
#else
alignas(A::alignment()) bool buffer[batch_bool<T, A>::size];
self.store_aligned(buffer);
return std::count(std::begin(buffer), std::end(buffer), true);
#if 0
// FIXME: we could do better by dispatching to the appropriate
// popcount instruction depending on the arch...
XSIMD_IF_CONSTEXPR(batch_bool<T, A>::size < 32)
Expand All @@ -66,7 +62,6 @@ namespace xsimd
m = (m + (m >> 4)) & (uint64_t) ~(uint64_t)0 / 255 * 15; // temp
return (m * ((uint64_t) ~(uint64_t)0 / 255)) >> (sizeof(uint64_t) - 1) * CHAR_BIT; // count
}
#endif
#endif
}
}
Expand Down

0 comments on commit 03c6ff4

Please sign in to comment.