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

Function mi_rotl

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

Source from the content-addressed store, hash-verified

678}
679
680static inline uintptr_t mi_rotl(uintptr_t x, uintptr_t shift) {
681 shift %= MI_INTPTR_BITS;
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))));

Callers 1

mi_ptr_encodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected