Namespaces | Functions
power-of-two.h File Reference
This graph shows which files directly or indirectly include this file:

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.


aseba
Author(s): Stéphane Magnenat
autogenerated on Sun Oct 5 2014 23:46:39