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

Function segment_holds

libCacheSim/dataStructure/sparsepp/spp_dlalloc.h:1568–1571  ·  view source on GitHub ↗

True if segment S holds address A

Source from the content-addressed store, hash-verified

1566
1567// True if segment S holds address A
1568static bool segment_holds(msegmentptr S, mchunkptr A)
1569{
1570 return (char*)A >= S->_base && (char*)A < S->_base + S->_size;
1571}
1572
1573/*
1574 top_foot_size is padding at the end of a segment, including space

Callers 4

traverse_and_checkMethod · 0.85
sys_allocMethod · 0.85
internal_inspect_allMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected