librnr/hash.c
static bool_t is_power_of_two(hash_val_t arg)
{
  if( arg == 0 )
  {
    return false;
  }

  while( (arg & 0x01) == 0 )
  {
    arg >>= 1;
  }

 return arg == 1? true: false;
}
/*!
 * \brief Verify whether the given argument is a power of two.
 *
 * \param arg  Argument to test.
 *
 * \return Returns true if arg is a power of 2, false otherwise.
 */
\brief Verify whether the given argument is a power of two.
\param arg  Argument to test.

\return Returns true if arg is a power of 2, false otherwise.
\ brief Verify whether the given argument is a power of two . \ param arg Argument to test . \ return Returns true if arg is a power of 2 false otherwise .
static bool_t is_power_of_two(hash_val_t arg)
{
  if( arg == 0 )
  {
    return false;
  }
  while( (arg & 0x01) == 0 )
  {
    arg >>= 1;
  }
 return arg == 1? true: false;
}
static bool_t is_power_of_two ( hash_val_t arg ) { if ( arg == 0 ) { return false ; } while ( ( arg & 0x01 ) == 0 ) { arg >>= 1 ; } return arg == 1 ? true : false ; }
\brief Verify whether the given argument is a power of two.
\ brief Verify whether the given argument is a power of two .