mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2024-12-26 15:26:43 +00:00
13 lines
205 B
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;
|
|
}
|
|
|