Searched refs:permyriad (Results 1 – 3 of 3) sorted by relevance
189 for (int permyriad = 0; permyriad <= 10000; permyriad++) { in TEST() local191 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()
30 static inline uint32_t UINT32_SCALE_FROM_PERMYRIAD(int permyriad) { in UINT32_SCALE_FROM_PERMYRIAD() argument31 return (uint32_t) (((uint64_t) CLAMP(permyriad, 0, 10000) * UINT32_MAX + 5000) / 10000U); in UINT32_SCALE_FROM_PERMYRIAD()
109 int permyriad = UINT32_SCALE_TO_PERMYRIAD(message.limit); in process_managed_oom_message() local111 r = store_loadavg_fixed_point(permyriad / 100LU, permyriad % 100LU, &limit); in process_managed_oom_message()