#ifndef morpheo_Log2 #define morpheo_Log2 /* * $Id$ * * [ Description ] * */ #include #include using namespace std; namespace morpheo { inline uint32_t log2 (uint32_t value) { return static_cast(ceil(::log2(value))); } }; // end namespace morpheo #endif