Searched refs:log2u (Results 1 – 3 of 3) sorted by relevance
64 TEST(log2u) { in TEST() argument65 assert_se(log2u(0) == 0); in TEST()66 assert_se(log2u(1) == 0); in TEST()67 assert_se(log2u(2) == 1); in TEST()68 assert_se(log2u(3) == 1); in TEST()69 assert_se(log2u(4) == 2); in TEST()70 assert_se(log2u(32) == 5); in TEST()71 assert_se(log2u(33) == 5); in TEST()72 assert_se(log2u(63) == 5); in TEST()73 assert_se(log2u(INT_MAX) == sizeof(int)*8-2); in TEST()
65 static inline unsigned log2u(unsigned x) { in log2u() function73 return log2u(x - 1) + 1; in log2u_round_up()
80 l = log2u(fq->buckets); in fair_queueing_fill_message()