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

Function mspace_trim

libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:3957–3966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3955#endif
3956
3957SPP_API inline int mspace_trim(mspace msp, size_t pad)
3958{
3959 int result = 0;
3960 mstate ms = (mstate)msp;
3961 if (ms->ok_magic())
3962 result = ms->sys_trim(pad);
3963 else
3964 SPP_USAGE_ERROR_ACTION(ms, ms);
3965 return result;
3966}
3967
3968SPP_API inline size_t mspace_footprint(mspace msp)
3969{

Callers

nothing calls this directly

Calls 2

ok_magicMethod · 0.80
sys_trimMethod · 0.80

Tested by

no test coverage detected