Home
last modified time | relevance | path

Searched refs:MALLOC_ALIGNMENT (Results 1 – 2 of 2) sorted by relevance

/f-stack/freebsd/contrib/octeon-sdk/cvmx-malloc/
H A Darena.c235 ptr += MALLOC_ALIGNMENT - misalign; in cvmx_new_arena()
248 int misaligned = ((size_t)ptr) & (MALLOC_ALIGNMENT - 1); in cvmx_add_arena()
251 ptr = (char*)ptr + MALLOC_ALIGNMENT - misaligned; in cvmx_add_arena()
252 size -= MALLOC_ALIGNMENT - misaligned; in cvmx_add_arena()
H A Dmalloc.c366 #ifndef MALLOC_ALIGNMENT
367 #define MALLOC_ALIGNMENT (2 * SIZE_SZ) macro
371 #define MALLOC_ALIGN_MASK (MALLOC_ALIGNMENT - 1)
2525 assert((MALLOC_ALIGNMENT & (MALLOC_ALIGNMENT-1)) == 0); in do_check_malloc_state()
2792 if (alignment <= MALLOC_ALIGNMENT) return public_mALLOc(arena_list, bytes); in public_mEMALIGn()
3714 if (alignment <= MALLOC_ALIGNMENT) return _int_malloc(av, bytes); in _int_memalign()
3722 size_t a = MALLOC_ALIGNMENT * 2; in _int_memalign()