link-grammar-5.8.0/link-grammar/utilities.h
/**
 * Returns the smallest power of two that is at least i and at least 1
 */
Returns the smallest power of two that is at least i and at least 1
Returns the smallest power of two that is at least i and at least 1
static inline size_t next_power_of_two_up(size_t i)
{
	size_t j=1;
	while (j<i) j <<= 1;
	return j;
}
static inline size_t next_power_of_two_up ( size_t i ) { size_t j = 1 ; while ( j < i ) j <<= 1 ; return j ; }
Returns the smallest power of two that is at least i and at least 1
Returns the smallest power of two that is at least i and at least 1