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

Function sys_alloc_padding

libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:1587–1590  ·  view source on GitHub ↗

For sys_alloc, enough padding to ensure can malloc request on success

Source from the content-addressed store, hash-verified

1585
1586// For sys_alloc, enough padding to ensure can malloc request on success
1587static SPP_FORCEINLINE size_t sys_alloc_padding()
1588{
1589 return top_foot_size() + SPP_MALLOC_ALIGNMENT;
1590}
1591
1592
1593#define SPP_USAGE_ERROR_ACTION(m,p) SPP_ABORT

Callers 1

sys_allocMethod · 0.85

Calls 1

top_foot_sizeFunction · 0.85

Tested by

no test coverage detected