Home
last modified time | relevance | path

Searched refs:ARENA_SIZE_MASK (Results 1 – 5 of 5) sorted by relevance

/external/syslinux/core/mem/
Dmalloc.h75 #define ARENA_SIZE_MASK (~(uintptr_t)(sizeof(struct arena_header)-1)) macro
80 #define ARENA_ALIGN_UP(p) ((char *)(((uintptr_t)(p) + ~ARENA_SIZE_MASK) \
81 & ARENA_SIZE_MASK))
82 #define ARENA_ALIGN_DOWN(p) ((char *)((uintptr_t)(p) & ARENA_SIZE_MASK))
84 #define ARENA_SIZE_GET(attrs) ((attrs) & ARENA_SIZE_MASK)
89 ((attrs) = ((size) & ARENA_SIZE_MASK) | ((attrs) & ~ARENA_SIZE_MASK))
Dmalloc.c78 size = (size + 2 * sizeof(struct arena_header) - 1) & ARENA_SIZE_MASK; in bios_malloc()
158 newsize = (size + 2 * sizeof(struct arena_header) - 1) & ARENA_SIZE_MASK; in bios_realloc()
/external/syslinux/dos/
Dmalloc.h40 #define ARENA_SIZE_MASK (sizeof(struct arena_header)-1) macro
42 #define ARENA_ALIGN_UP(p) ((char *)(((uintptr_t)(p) + ARENA_SIZE_MASK) & ~ARENA_SIZE_MASK))
43 #define ARENA_ALIGN_DOWN(p) ((char *)((uintptr_t)(p) & ~ARENA_SIZE_MASK))
Dmalloc.c89 size = (size + 2 * sizeof(struct arena_header) - 1) & ~ARENA_SIZE_MASK; in malloc()
/external/syslinux/com32/lib/
Dmalloc.h40 #define ARENA_SIZE_MASK (~(uintptr_t)(sizeof(struct arena_header)-1)) macro
42 #define ARENA_ALIGN_UP(p) ((char *)(((uintptr_t)(p) + ~ARENA_SIZE_MASK) & ARENA_SIZE_MASK))
43 #define ARENA_ALIGN_DOWN(p) ((char *)((uintptr_t)(p) & ARENA_SIZE_MASK))