Home
last modified time | relevance | path

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

/systemd-251/src/test/
Dtest-percent-util.c189 for (int permyriad = 0; permyriad <= 10000; permyriad++) { in TEST() local
191 permyriad, in TEST()
192 UINT32_SCALE_FROM_PERMYRIAD(permyriad), in TEST()
193 UINT32_SCALE_TO_PERMYRIAD(UINT32_SCALE_FROM_PERMYRIAD(permyriad))); in TEST()
195 … assert_se(UINT32_SCALE_TO_PERMYRIAD(UINT32_SCALE_FROM_PERMYRIAD(permyriad)) == permyriad); in TEST()
/systemd-251/src/basic/
Dpercent-util.h30 static inline uint32_t UINT32_SCALE_FROM_PERMYRIAD(int permyriad) { in UINT32_SCALE_FROM_PERMYRIAD() argument
31 return (uint32_t) (((uint64_t) CLAMP(permyriad, 0, 10000) * UINT32_MAX + 5000) / 10000U); in UINT32_SCALE_FROM_PERMYRIAD()
/systemd-251/src/oom/
Doomd-manager.c109 int permyriad = UINT32_SCALE_TO_PERMYRIAD(message.limit); in process_managed_oom_message() local
111 r = store_loadavg_fixed_point(permyriad / 100LU, permyriad % 100LU, &limit); in process_managed_oom_message()