retdec
|
Mathematical utilities. More...
Go to the source code of this file.
Namespaces | |
retdec | |
retdec::utils | |
Functions | |
template<typename N > | |
bool | retdec::utils::isPowerOfTwo (N number) |
Check if number is power of two. More... | |
template<typename N > | |
bool | retdec::utils::isPowerOfTwoOrZero (N number) |
Check if number is power of two or zero. More... | |
unsigned | retdec::utils::countBits (unsigned long long n) |
Counts all 1 bits in the given number. More... | |
unsigned | retdec::utils::bitSizeOfNumber (unsigned long long v) |
Returns the number of bits needed to encode the given number. More... | |
Mathematical utilities.