fix: memory: protect kernel code
This commit is contained in:
@ -1,4 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#define CEIL(x, y) (((x) + (y) - 1) / (y))
|
||||
#define ARRAY_SIZE(ptr) (sizeof(ptr) / sizeof(ptr[0]))
|
||||
#define CEIL(x, y) (((x) + (y) - 1) / (y))
|
||||
#define ARRAY_SIZE(ptr) (sizeof(ptr) / sizeof(ptr[0]))
|
||||
#define ROUND_CEIL(x, y) (CEIL(x, y) * y)
|
||||
#define ROUND_FLOOR(x, y) ((x / y) * y)
|
||||
|
Reference in New Issue
Block a user