Searched refs:DIV_ROUND_UP (Results 1 - 10 of 10) sorted by relevance
/systemd/src/test/ |
H A D | test-util.c | 171 assert_se(DIV_ROUND_UP(0, 8) == 0); 172 assert_se(DIV_ROUND_UP(1, 8) == 1); 173 assert_se(DIV_ROUND_UP(8, 8) == 1); 174 assert_se(DIV_ROUND_UP(12, 8) == 2); 175 assert_se(DIV_ROUND_UP(16, 8) == 2); 179 assert_se(DIV_ROUND_UP(div++, 8) == 0 && div == 1); 180 assert_se(DIV_ROUND_UP(++div, 8) == 1 && div == 2); 181 assert_se(DIV_ROUND_UP(8, div++) == 4 && div == 3); 182 assert_se(DIV_ROUND_UP(8, ++div) == 2 && div == 4); 188 assert_se(DIV_ROUND_UP( [all...] |
/systemd/src/basic/ |
H A D | rlimit-util.c | 124 u = (uint64_t) DIV_ROUND_UP(t, USEC_PER_SEC);
|
H A D | macro.h | 209 #define DIV_ROUND_UP(_x, _y) \ macro
|
H A D | time-util.c | 1115 return DIV_ROUND_UP(u , USEC_PER_SEC / hz);
|
/systemd/src/libsystemd/sd-bus/ |
H A D | bus-creds.c | 681 sz = DIV_ROUND_UP(cap_last_cap(), 32U); 733 max = DIV_ROUND_UP(cap_last_cap(), 32U); 1273 n->capability = memdup(c->capability, DIV_ROUND_UP(cap_last_cap(), 32U) * 4 * 4);
|
H A D | bus-control.c | 562 item->size - offsetof(struct kdbus_item, caps.caps) < DIV_ROUND_UP(item->caps.last_cap, 32U) * 4 * 4)
|
H A D | bus-kernel.c | 726 d->size - offsetof(struct kdbus_item, caps.caps) < DIV_ROUND_UP(d->caps.last_cap, 32U) * 4 * 4) {
|
/systemd/src/libsystemd-network/ |
H A D | sd-dhcp-server.c | 202 server->default_lease_time = DIV_ROUND_UP(DHCP_DEFAULT_LEASE_TIME_USEC, USEC_PER_SEC); 203 server->max_lease_time = DIV_ROUND_UP(DHCP_MAX_LEASE_TIME_USEC, USEC_PER_SEC);
|
/systemd/src/shared/ |
H A D | ask-password-api.c | 153 (unsigned long) DIV_ROUND_UP(KEYRING_TIMEOUT_USEC, USEC_PER_SEC), 0, 0) < 0)
|
/systemd/src/network/ |
H A D | networkd-link.c | 886 DIV_ROUND_UP(link->network->dhcp_server_max_lease_time_usec, USEC_PER_SEC)); 894 DIV_ROUND_UP(link->network->dhcp_server_default_lease_time_usec, USEC_PER_SEC));
|
Completed in 3498 milliseconds