Sign in
android
/
trusty
/
external
/
musl
/
abed653939c5a81efd1e32ded4a3b73c10b55a0b
/
.
/
src
/
malloc
/
malloc_usable_size.c
blob: 672b518ad0ef15d9b3ad19a0538c6490aa88ca63 [
file
] [
log
] [
blame
]
#include
<malloc.h>
#include
"malloc_impl.h"
hidden
void
*(*
const
__realloc_dep
)(
void
*,
size_t
)
=
realloc
;
size_t
malloc_usable_size
(
void
*
p
)
{
return
p
?
CHUNK_SIZE
(
MEM_TO_CHUNK
(
p
))
-
OVERHEAD
:
0
;
}