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

Function spp_is_aligned

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

Source from the content-addressed store, hash-verified

277
278#if defined(SPP_DEBUG) || !defined(NDEBUG)
279static bool spp_is_aligned(void *p) { return ((size_t)p & spp_chunk_align_mask) == 0; }
280#endif
281
282// the number of bytes to offset an address to align it

Callers 6

do_check_any_chunkMethod · 0.85
do_check_top_chunkMethod · 0.85
do_check_free_chunkMethod · 0.85
mmap_allocMethod · 0.85
add_segmentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected