On Tue, 11 Jun 2024, Matthew Brost <matthew.brost at intel.com> wrote: > +static u64 div_u64_roundup(u64 n, u32 d) > +{ > + return div_u64(n + d - 1, d); > +} If math64.h doesn't offer what you need, maybe update it instead of accumulating local variants? BR, Jani. -- Jani Nikula, Intel