cub::ShiftDigitExtractor

Defined in cub/block/radix_rank_sort_operations.cuh

template<typename KeyT>
struct ShiftDigitExtractor : public cub::BaseDigitExtractor<KeyT>

A wrapper type to extract digits.

Uses a combination of shift and bitwise and to extract digits.

Public Types

using TraitsT = Traits<KeyT>
using UnsignedBits = typename TraitsT::UnsignedBits

Public Functions

inline explicit ShiftDigitExtractor(::cuda::std::uint32_t bit_start = 0, ::cuda::std::uint32_t num_bits = 0)
inline ::cuda::std::uint32_t Digit(UnsignedBits key) const

Public Members

::cuda::std::uint32_t bit_start
::cuda::std::uint32_t mask

Public Static Functions

static inline UnsignedBits ProcessFloatMinusZero(UnsignedBits key)