Change-Id: I1ccc0a174dc9164400aee00e48a08f1c8ca33182
*/
inline unsigned int NextPowerOfTwo( unsigned int i )
{
- DALI_ASSERT_DEBUG(i <= 1U << (sizeof(unsigned) * 8 - 1) && "Return type cannot represent the next power of two greater than the argument.");
- if(i==0)
+ DALI_ASSERT_DEBUG(i <= 1u << (sizeof(unsigned) * 8 - 1) && "Return type cannot represent the next power of two greater than the argument.");
+ if(i==0u)
{
- return 1;
+ return 1u;
}
i--;
*/
inline bool IsPowerOfTwo( unsigned int i )
{
- return (i != 0) && ((i & (i - 1)) == 0);
+ return (i != 0u) && ((i & (i - 1u)) == 0u);
}
/**