25 template<
typename u
int_t>
27 DCHECK(k > 0) <<
"order must be at least one";
48 template<
typename u
int_t>
51 return (pos != SELECT_FAIL) ? (l +
pos) : SELECT_FAIL;
64 template<
typename u
int_t>
66 DCHECK(k > 0) <<
"order must be at least one";
88 template<
typename u
int_t>
91 if(pos != SELECT_FAIL) {
Contains the text compression and encoding framework.
constexpr uint8_t select1(uint_t v, uint8_t k)
Finds the position of the k-th 1-bit in the binary representation of the given value.
Yields the position of the most significant bit for the template integer type.
constexpr uint8_t SELECT_FAIL
Returned by select0 and select1 in case the searched bit does not exist in the given input value...
typename uint_dispatch_t< N >::type uint_t
constexpr uint8_t select0(uint_t v, uint8_t k)
Finds the position of the k-th 0-bit in the binary representation of the given value.