/opt/ros/diamondback/stacks/ethzasl_aseba/asebaros/aseba/svn/compiler/power-of-two.h File Reference

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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


asebaros
Author(s): $author
autogenerated on Mon Sep 5 08:41:55 2011