MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / mspace_usable_size

Function mspace_usable_size

libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:4023–4032  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4021}
4022
4023SPP_API inline size_t mspace_usable_size(const void* mem)
4024{
4025 if (mem != 0)
4026 {
4027 mchunkptr p = mem2chunk(mem);
4028 if (p->is_inuse())
4029 return p->chunksize() - p->overhead_for();
4030 }
4031 return 0;
4032}
4033
4034SPP_API inline int mspace_mallopt(int param_number, int value)
4035{

Callers

nothing calls this directly

Calls 4

mem2chunkFunction · 0.85
is_inuseMethod · 0.80
chunksizeMethod · 0.80
overhead_forMethod · 0.80

Tested by

no test coverage detected