Given a value this functor computes its bitreversed value by considering the least signficant bits specified by ceil(log2(max))
More...
|
| bitreverse (T max) |
| Set the number of bits to use by determining the number of bits needed to represent the value provided. More...
|
|
T | operator() (T input) const |
| Convert a number to its bitreverse value. For example, if the struct is constructed with a max of 32(100000) and the operator receives 2(000010) the operator will return 010000.
|
|
|
unsigned int | m_number_of_bits |
|
template<typename T>
struct stapl::bitreverse< T >
Given a value this functor computes its bitreversed value by considering the least signficant bits specified by ceil(log2(max))
◆ bitreverse()
Set the number of bits to use by determining the number of bits needed to represent the value provided.
- Parameters
-
max | - ceil(log_2(max)) determines the number of bits in bitreverse |
The documentation for this struct was generated from the following file: