ZealOS/zealbooter/lib.c

14 lines
205 B
C
Raw Normal View History

2022-08-20 15:13:06 +01:00
#include <stdint.h>
#include <lib.h>
uint64_t div_roundup_u64(uint64_t a, uint64_t b)
{
return (a + (b - 1)) / b;
2022-08-20 15:13:06 +01:00
}
uint64_t align_up_u64(uint64_t a, uint64_t b)
{
return div_roundup_u64(a, b) * b;
2022-08-20 15:13:06 +01:00
}