fix (kernel): Fixed 'CEIL_TO' bug, that caused the value to ceil up one step, if already aligned
This commit is contained in:
parent
2aaef2d715
commit
c15c42ca35
|
@ -20,7 +20,7 @@
|
|||
|
||||
#define MAX(a, b) (a > b ? a : b)
|
||||
#define MIN(a, b) (a > b ? b : a)
|
||||
#define CEIL_TO(a, b) (a + b - (a % b))
|
||||
#define CEIL_TO(a, b) (a % b ? a + b - (a % b) : a)
|
||||
#define FLOOR_TO(a, b) (a - (a % b))
|
||||
|
||||
uint64_t pow(uint64_t base, uint64_t exp);
|
||||
|
|
Loading…
Reference in New Issue