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

Function mi_ptr_decode

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

Source from the content-addressed store, hash-verified

687}
688
689static inline void* mi_ptr_decode(const void* null, const mi_encoded_t x, const uintptr_t* keys) {
690 void* p = (void*)(mi_rotr(x - keys[0], keys[0]) ^ keys[1]);
691 return (p==null ? NULL : p);
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);

Callers 1

mi_block_nextxFunction · 0.85

Calls 1

mi_rotrFunction · 0.85

Tested by

no test coverage detected