Lines Matching defs:mem
69 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) ^ 0x8000000000ULL)
96 # define MEM_TO_SHADOW(mem) ((uptr)mem ^ 0xB00000000000ULL)
118 # define MEM_TO_SHADOW(mem) (((uptr)(mem)) ^ 0x500000000000ULL)
140 #define LINEARIZE_MEM(mem) \
141 (((uptr)(mem) & ~0xE00000000000ULL) ^ 0x100000000000ULL)
142 #define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x080000000000ULL)
156 #define MEM_TO_SHADOW(mem) \
157 ((((uptr)(mem)) & ~0xC00000000000ULL) + 0x080000000000ULL)
176 #define LINEARIZE_MEM(mem) \
177 (((uptr)(mem) & ~0x1800000000000ULL) ^ 0x400000000000ULL)
178 #define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x200000000000ULL)
197 #define LINEARIZE_MEM(mem) \
198 (((uptr)(mem) & ~0xc00000000000ULL) ^ 0x200000000000ULL)
199 #define MEM_TO_SHADOW(mem) (LINEARIZE_MEM((mem)) + 0x100000000000ULL)
223 #define MEM_TO_SHADOW(mem) (((uptr)(mem)) ^ 0x500000000000ULL)
224 #define SHADOW_TO_ORIGIN(mem) (((uptr)(mem)) + 0x100000000000ULL)
232 #define MEM_TO_ORIGIN(mem) (SHADOW_TO_ORIGIN(MEM_TO_SHADOW((mem))))
251 #define MEM_IS_APP(mem) \
252 (addr_is_type((uptr)(mem), MappingDesc::APP | MappingDesc::ALLOCATOR))
253 #define MEM_IS_SHADOW(mem) addr_is_type((uptr)(mem), MappingDesc::SHADOW)
254 #define MEM_IS_ORIGIN(mem) addr_is_type((uptr)(mem), MappingDesc::ORIGIN)