PMM and liballoc port
This commit is contained in:
8
kernel/libk/align.h
Normal file
8
kernel/libk/align.h
Normal file
@@ -0,0 +1,8 @@
|
||||
#ifndef _KERNEL_LIBK_ALIGN_H
|
||||
#define _KERNEL_LIBK_ALIGN_H
|
||||
|
||||
#define div_align_up(x, div) (((x) + (div) - 1) / (div))
|
||||
#define align_down(x, a) ((x) & ~((a) - 1))
|
||||
#define align_up(x, a) (((x) + ((a) - 1)) & ~((a) - 1))
|
||||
|
||||
#endif // _KERNEL_LIBK_ALIGN_H
|
||||
Reference in New Issue
Block a user