impose barrier between thread pointer setup and use for static linking
[musl.git] / src / malloc / malloc_usable_size.c
blob672b518ad0ef15d9b3ad19a0538c6490aa88ca63
1 #include <malloc.h>
2 #include "malloc_impl.h"
4 hidden void *(*const __realloc_dep)(void *, size_t) = realloc;
6 size_t malloc_usable_size(void *p)
8 return p ? CHUNK_SIZE(MEM_TO_CHUNK(p)) - OVERHEAD : 0;