Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-util.c76 TEST(log2i) { in TEST() argument
77 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()
/systemd-251/src/basic/
Dutil.h61 static inline unsigned log2i(int x) { in log2i() function
/systemd-251/src/timesync/
Dtimesyncd-manager.c257 .constant = log2i(m->poll_interval_usec / USEC_PER_SEC) - 4, in manager_adjust_clock()