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

Function mi_ptr_encode

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

Source from the content-addressed store, hash-verified

692}
693
694static inline mi_encoded_t mi_ptr_encode(const void* null, const void* p, const uintptr_t* keys) {
695 uintptr_t x = (uintptr_t)(p==NULL ? null : p);
696 return mi_rotl(x ^ keys[1], keys[0]) + keys[0];
697}
698
699static inline mi_block_t* mi_block_nextx( const void* null, const mi_block_t* block, const uintptr_t* keys ) {
700 mi_track_mem_defined(block,sizeof(mi_block_t));

Callers 3

alloc.cFile · 0.85
mi_page_decode_paddingFunction · 0.85
mi_block_set_nextxFunction · 0.85

Calls 1

mi_rotlFunction · 0.85

Tested by

no test coverage detected