| 1034 | } |
| 1035 | |
| 1036 | static inline mi_encoded_t mi_ptr_encode(const void* null, const void* p, const uintptr_t* keys) { |
| 1037 | uintptr_t x = (uintptr_t)(p==NULL ? null : p); |
| 1038 | return mi_rotl(x ^ keys[1], keys[0]) + keys[0]; |
| 1039 | } |
| 1040 | |
| 1041 | static inline uint32_t mi_ptr_encode_canary(const void* null, const void* p, const uintptr_t* keys) { |
| 1042 | const uint32_t x = (uint32_t)(mi_ptr_encode(null,p,keys)); |
no test coverage detected