/* Get index of free list containing blocks of maximum size which is less than or equal to given size.  */
static u32 get_index_for_insert(u32 size)
/* Get index of free list containing blocks of maximum size which is less than or equal to given size.  */
static u32 get_index_for_insert(u32 size)
{
	if (unlikely(size > XV_MAX_ALLOC_SIZE))
		size = XV_MAX_ALLOC_SIZE;
	size &= ~FL_DELTA_MASK;
	return (size - XV_MIN_ALLOC_SIZE) >> FL_DELTA_SHIFT;
}