Go to the source code of this file.
Namespaces | |
namespace | Aseba |
Functions | |
template<typename T > | |
bool | Aseba::isPOT (T number) |
Return true if number is a power of two. | |
template<typename T > | |
unsigned | Aseba::shiftFromPOT (T number) |
If number is a power of two, number = (1 << shift) and this function returns shift, otherwise return value is undefined. |