Home
last modified time | relevance | path

Searched refs:LOG2ULL (Results 1 – 2 of 2) sorted by relevance

/systemd-251/src/test/
Dtest-util.c20 TEST(LOG2ULL) { in TEST() argument
21 assert_se(LOG2ULL(0) == 0); in TEST()
22 assert_se(LOG2ULL(1) == 0); in TEST()
23 assert_se(LOG2ULL(8) == 3); in TEST()
24 assert_se(LOG2ULL(9) == 3); in TEST()
25 assert_se(LOG2ULL(15) == 3); in TEST()
26 assert_se(LOG2ULL(16) == 4); in TEST()
27 assert_se(LOG2ULL(1024*1024) == 20); in TEST()
28 assert_se(LOG2ULL(1024*1024+5) == 20); in TEST()
/systemd-251/src/basic/
Dutil.h36 #define LOG2ULL(x) __builtin_choose_expr(__builtin_constant_p(x), CONST_LOG2ULL(x), NONCONST_LOG2UL… macro
40 return LOG2ULL(x); in log2u64()