Home
last modified time | relevance | path

Searched refs:log2u (Results 1 – 3 of 3) sorted by relevance

/systemd-251/src/test/
Dtest-util.c64 TEST(log2u) { in TEST() argument
65 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()
/systemd-251/src/basic/
Dutil.h65 static inline unsigned log2u(unsigned x) { in log2u() function
73 return log2u(x - 1) + 1; in log2u_round_up()
/systemd-251/src/network/tc/
Dfq.c80 l = log2u(fq->buckets); in fair_queueing_fill_message()