mirror of
https://github.com/GrapheneOS/hardened_malloc.git
synced 2025-04-20 06:20:20 +02:00
get rid of unused MIN_ALIGN definition
This commit is contained in:
parent
2684a98eab
commit
becadc57a5
1 changed files with 0 additions and 1 deletions
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…
Add table
Reference in a new issue