src/lib/util.c
int is_power_of_two(uint64_t x)
{
   while ( x%2 == 0 && x > 1) {
      x /= 2;
   }
   return (x == 1);
}
/*
 * check if x is a power  two
 */
check if x is a power  two
check if x is a power two
int is_power_of_two(uint64_t x)
{
   while ( x%2 == 0 && x > 1) {
      x /= 2;
   }
   return (x == 1);
}
int is_power_of_two ( uint64_t x ) { while ( x % 2 == 0 && x > 1 ) { x /= 2 ; } return ( x == 1 ) ; }
check if x is a power  two
check if x is a power two