ZealOS/zealbooter/src/lib.c

13 lines
205 B
C

#include <stdint.h>
#include <lib.h>
uint64_t div_roundup_u64(uint64_t a, uint64_t b)
{
return (a + (b - 1)) / b;
}
uint64_t align_up_u64(uint64_t a, uint64_t b)
{
return div_roundup_u64(a, b) * b;
}