Searched refs:log2i (Results 1 – 3 of 3) sorted by relevance
76 TEST(log2i) { in TEST() argument77 assert_se(log2i(0) == 0); in TEST()78 assert_se(log2i(1) == 0); in TEST()79 assert_se(log2i(2) == 1); in TEST()80 assert_se(log2i(3) == 1); in TEST()81 assert_se(log2i(4) == 2); in TEST()82 assert_se(log2i(32) == 5); in TEST()83 assert_se(log2i(33) == 5); in TEST()84 assert_se(log2i(63) == 5); in TEST()85 assert_se(log2i(INT_MAX) == sizeof(int)*8-2); in TEST()
61 static inline unsigned log2i(int x) { in log2i() function
257 .constant = log2i(m->poll_interval_usec / USEC_PER_SEC) - 4, in manager_adjust_clock()