MCPcopy Create free account
hub / github.com/CE-Programming/CEmu / div_round

Function div_round

core/schedule.c:170–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168}
169
170static inline uint64_t div_round(uint64_t dividend, struct sched_clock *clock) {
171 return div_floor(dividend + (clock->tick_unit / 2), clock);
172}
173
174static inline uint64_t div_ceil(uint64_t dividend, struct sched_clock *clock) {
175 return div_floor(dividend + (clock->tick_unit - 1), clock);

Callers 1

sched_get_clock_rateFunction · 0.85

Calls 1

div_floorFunction · 0.85

Tested by

no test coverage detected