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

Function _mi_ptr_cookie

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

Source from the content-addressed store, hash-verified

438}
439
440static inline uintptr_t _mi_ptr_cookie(const void* p) {
441 extern mi_heap_t _mi_heap_main;
442 mi_assert_internal(_mi_heap_main.cookie != 0);
443 return ((uintptr_t)p ^ _mi_heap_main.cookie);
444}
445
446/* -----------------------------------------------------------
447 Pages

Callers 6

segment-cache.cFile · 0.85
mi_checked_ptr_segmentFunction · 0.85
_mi_free_delayed_blockFunction · 0.85
mi_segment_is_validFunction · 0.85
mi_segment_allocFunction · 0.85
mi_heap_of_blockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected