src/cmr/hashtable.h
/**
 * \brief Returns the smallest power of 2 at least as large as \p x.
 */
\brief Returns the smallest power of 2 at least as large as \p x.
\ brief Returns the smallest power of 2 at least as large as \ p x .
static inline
size_t nextPower2(size_t x)
{
  x |= x >> 1;
  x |= x >> 2;
  x |= x >> 4;
  x |= x >> 8;
  x |= x >> 16;
  x |= x >> 32;
  return x + 1;
}
static inline size_t nextPower2 ( size_t x ) { x |= x >> 1 ; x |= x >> 2 ; x |= x >> 4 ; x |= x >> 8 ; x |= x >> 16 ; x |= x >> 32 ; return x + 1 ; }
\brief Returns the smallest power of 2 at least as large as \p x.
\ brief Returns the smallest power of 2 at least as large as \ p x .