FreeBSD/sys/dev/drm/drm_bufs.c
/*
 * Compute order.  Can be made faster.
 */
Compute order.  Can be made faster.
Compute order . Can be made faster .
int drm_order(unsigned long size)
{
	int order;
	if (size == 0)
		return 0;
	order = flsl(size) - 1;
	if (size & ~(1ul << order))
		++order;
	return order;
}
int drm_order ( unsigned long size ) { int order ; if ( size == 0 ) return 0 ; order = flsl ( size ) - 1 ; if ( size & ~ ( 1ul << order ) ) ++ order ; return order ; }
Compute order.
Compute order .