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

Function mi_rotr

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

Source from the content-addressed store, hash-verified

682 return (shift==0 ? x : ((x << shift) | (x >> (MI_INTPTR_BITS - shift))));
683}
684static inline uintptr_t mi_rotr(uintptr_t x, uintptr_t shift) {
685 shift %= MI_INTPTR_BITS;
686 return (shift==0 ? x : ((x >> shift) | (x << (MI_INTPTR_BITS - shift))));
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]);

Callers 1

mi_ptr_decodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected