Searched refs:NONCONST_LOG2ULL (Results 1 – 2 of 2) sorted by relevance
42 TEST(NONCONST_LOG2ULL) { in TEST() argument43 assert_se(NONCONST_LOG2ULL(0) == 0); in TEST()44 assert_se(NONCONST_LOG2ULL(1) == 0); in TEST()45 assert_se(NONCONST_LOG2ULL(8) == 3); in TEST()46 assert_se(NONCONST_LOG2ULL(9) == 3); in TEST()47 assert_se(NONCONST_LOG2ULL(15) == 3); in TEST()48 assert_se(NONCONST_LOG2ULL(16) == 4); in TEST()49 assert_se(NONCONST_LOG2ULL(1024*1024) == 20); in TEST()50 assert_se(NONCONST_LOG2ULL(1024*1024+5) == 20); in TEST()
32 #define NONCONST_LOG2ULL(x) ({ \ macro36 …ne LOG2ULL(x) __builtin_choose_expr(__builtin_constant_p(x), CONST_LOG2ULL(x), NONCONST_LOG2ULL(x))