14 template<
typename TValue>
23 return static_cast<std::int32_t
>(count);
27 template<
typename TValue>
32 std::int32_t result = 1;
33 while((value & 1) == 0)
57 static auto popcount(IntrinsicFallback
const& , std::uint64_t value) -> std::int32_t
64 struct Ffs<IntrinsicFallback>
66 static auto ffs(IntrinsicFallback
const& , std::int32_t value) -> std::int32_t
71 static auto ffs(IntrinsicFallback
const& , std::int64_t value) -> std::int32_t
static auto popcountFallback(TValue value) -> std::int32_t
Fallback implementation of popcount.
static auto ffsFallback(TValue value) -> std::int32_t
Fallback implementation of ffs.
The alpaka accelerator library.
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto ffs(TIntrinsic const &intrinsic, std::int32_t value) -> std::int32_t
Returns the 1-based position of the least significant bit set to 1 in the given 32-bit value....
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_ACC auto popcount(TIntrinsic const &intrinsic, std::uint32_t value) -> std::int32_t
Returns the number of 1 bits in the given 32-bit value.
Tag used in class inheritance hierarchies that describes that a specific interface (TInterface) is im...