repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
impose barrier between thread pointer setup and use for static linking
[musl.git]
/
src
/
malloc
/
malloc_usable_size.c
blob
672b518ad0ef15d9b3ad19a0538c6490aa88ca63
1
#include <malloc.h>
2
#include
"malloc_impl.h"
3
4
hidden
void
*(*
const
__realloc_dep
)(
void
*,
size_t
) =
realloc
;
5
6
size_t
malloc_usable_size
(
void
*
p
)
7
{
8
return
p
?
CHUNK_SIZE
(
MEM_TO_CHUNK
(
p
)) -
OVERHEAD
:
0
;
9
}