Lines Matching +full:- +full:c
2 * Copyright (c) 2012, 2013 ARM Ltd
31 * Interface documentation refer to malloc.c.
65 /* --------------------------------------
67 * chunk->| When allocated: data |
70 * --------------------------------------
111 #define MALLOC_MAXSIZE (SIZE_MAX - (MALLOC_HEAD + 2*MALLOC_CHUNK_ALIGN))
115 return (size_t *) ((char *) chunk - MALLOC_HEAD); in _size_ref()
137 bool __malloc_grow_chunk(chunk_t *c, size_t new_size);
159 chunk_to_ptr(chunk_t *c) in chunk_to_ptr() argument
161 return c; in chunk_to_ptr()
173 chunk_to_blob(chunk_t *c) in chunk_to_blob() argument
175 return (void *) ((char *) c - MALLOC_HEAD); in chunk_to_blob()
178 /* end of chunk -- address of first byte past chunk storage */
180 chunk_end(chunk_t *c) in chunk_end() argument
182 size_t *s = _size_ref(c); in chunk_end()
186 /* next chunk in memory -- address of chunk header past this chunk */
188 chunk_after(chunk_t *c) in chunk_after() argument
190 return (chunk_t *) ((char *) c + _size(c)); in chunk_after()
204 malloc_size += (MALLOC_CHUNK_ALIGN - MALLOC_HEAD_ALIGN); in chunk_size()
213 chunk_usable(chunk_t *c) in chunk_usable() argument
215 return _size(c) - MALLOC_HEAD; in chunk_usable()
221 make_free_chunk(chunk_t *c, size_t size) in make_free_chunk() argument
223 _set_size(c, size); in make_free_chunk()
224 __malloc_free(chunk_to_ptr(c)); in make_free_chunk()