MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / mi_slice_to_page

Function mi_slice_to_page

3rd/mimalloc-2.0.9/include/mimalloc-internal.h:471–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471static inline mi_page_t* mi_slice_to_page(mi_slice_t* s) {
472 mi_assert_internal(s->slice_offset== 0 && s->slice_count > 0);
473 return (mi_page_t*)(s);
474}
475
476static inline mi_slice_t* mi_page_to_slice(mi_page_t* p) {
477 mi_assert_internal(p->slice_offset== 0 && p->slice_count > 0);

Callers 4

mi_segment_span_allocateFunction · 0.85
mi_segment_check_freeFunction · 0.85
mi_segment_reclaimFunction · 0.85
_mi_segment_page_ofFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected