base/list/m_llist.c
/*! Calculate the number of levels necessary for the number of elements in the list. */
Calculate the number of levels necessary for the number of elements in the list.
Calculate the number of levels necessary for the number of elements in the list .
static size_t M_llist_max_level(M_llist_t *d)
{
	size_t elements;
	elements = d->elements+1;
	if (elements <= M_LLIST_START_LEVEL_ELEMENTS)
		return M_LLIST_START_LEVEL;
	return M_uint64_log2(M_uint64_round_up_to_power_of_two(elements));
}
static size_t M_llist_max_level ( M_llist_t * d ) { size_t elements ; elements = d -> elements + 1 ; if ( elements <= M_LLIST_START_LEVEL_ELEMENTS ) return M_LLIST_START_LEVEL ; return M_uint64_log2 ( M_uint64_round_up_to_power_of_two ( elements ) ) ; }
Calculate the number of levels necessary for the number of elements in the list.
Calculate the number of levels necessary for the number of elements in the list .