Searched refs:ARENA_SIZE_MASK (Results 1 – 5 of 5) sorted by relevance
75 #define ARENA_SIZE_MASK (~(uintptr_t)(sizeof(struct arena_header)-1)) macro80 #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))
78 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()
40 #define ARENA_SIZE_MASK (sizeof(struct arena_header)-1) macro42 #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))
89 size = (size + 2 * sizeof(struct arena_header) - 1) & ~ARENA_SIZE_MASK; in malloc()
40 #define ARENA_SIZE_MASK (~(uintptr_t)(sizeof(struct arena_header)-1)) macro42 #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))