mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2024-10-01 01:36:01 -04:00
get rid of unused MIN_ALIGN definition
This commit is contained in:
parent
2684a98eab
commit
becadc57a5
1
malloc.c
1
malloc.c
@ -25,7 +25,6 @@ static_assert(sizeof(void *) == 8, "64-bit only");
|
|||||||
#define PAGE_MASK ((size_t)(PAGE_SIZE - 1))
|
#define PAGE_MASK ((size_t)(PAGE_SIZE - 1))
|
||||||
#define PAGE_CEILING(s) (((s) + PAGE_MASK) & ~PAGE_MASK)
|
#define PAGE_CEILING(s) (((s) + PAGE_MASK) & ~PAGE_MASK)
|
||||||
|
|
||||||
#define MIN_ALIGN 16
|
|
||||||
#define ALIGNMENT_CEILING(s, alignment) (((s) + (alignment - 1)) & ((~(alignment)) + 1))
|
#define ALIGNMENT_CEILING(s, alignment) (((s) + (alignment - 1)) & ((~(alignment)) + 1))
|
||||||
|
|
||||||
static void *allocate_pages(size_t usable_size, size_t guard_size, bool unprotect) {
|
static void *allocate_pages(size_t usable_size, size_t guard_size, bool unprotect) {
|
||||||
|
Loading…
Reference in New Issue
Block a user