tudocomp
– The TU Dortmund Compression Framework
select_64bit.hpp File Reference
#include <cstdint>
#include <tudocomp/util.hpp>

Go to the source code of this file.

Namespaces

 tdc
 Contains the text compression and encoding framework.
 

Functions

template<typename uint_t >
constexpr uint8_t tdc::select1 (uint_t v, uint8_t k)
 Finds the position of the k-th 1-bit in the binary representation of the given value. More...
 
template<typename uint_t >
constexpr uint8_t tdc::select1 (uint_t v, uint8_t l, uint8_t k)
 Finds the position of the k-th 1-bit in the binary representation of the given value. More...
 
template<typename uint_t >
constexpr uint8_t tdc::select0 (uint_t v, uint8_t k)
 Finds the position of the k-th 0-bit in the binary representation of the given value. More...
 
template<typename uint_t >
constexpr uint8_t tdc::select0 (uint_t v, uint8_t l, uint8_t k)
 Finds the position of the k-th 0-bit in the binary representation of the given value. More...
 

Variables

constexpr uint8_t tdc::SELECT_FAIL = 0xFF
 Returned by select0 and select1 in case the searched bit does not exist in the given input value. More...