Home
last modified time | relevance | path

Searched refs:log2u64 (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/test/
Dtest-util.c53 TEST(log2u64) { in TEST() argument
54 assert_se(log2u64(0) == 0); in TEST()
55 assert_se(log2u64(1) == 0); in TEST()
56 assert_se(log2u64(8) == 3); in TEST()
57 assert_se(log2u64(9) == 3); in TEST()
58 assert_se(log2u64(15) == 3); in TEST()
59 assert_se(log2u64(16) == 4); in TEST()
60 assert_se(log2u64(1024*1024) == 20); in TEST()
61 assert_se(log2u64(1024*1024+5) == 20); in TEST()
/systemd-251/src/basic/
Dutil.h38 static inline unsigned log2u64(uint64_t x) { in log2u64() function
Dcapability-util.c339 cap_value_t bits[log2u64(keep_capabilities) + 1]; in drop_privileges()
/systemd-251/src/journal/
Djournald-rate-limit.c165 k = log2u64(available); in burst_modulate()
/systemd-251/src/libsystemd/sd-event/
Dsd-event.c4213 l = log2u64(this_run - e->last_run_usec); in sd_event_run()
/systemd-251/src/partition/
Drepart.c1631 if (secsz < 512 || secsz != 1UL << log2u64(secsz)) in context_load_partition_table()