Searched refs:kShadowCnt (Results 1 – 5 of 5) sorted by relevance
112 ^ kAppMemXor) * kShadowCnt; in MemToShadow()126 return (s / kShadowCnt) ^ kAppMemXor; in ShadowToMem()128 return ((s / kShadowCnt) ^ kAppMemXor) | kAppMemMsk; in ShadowToMem()179 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | kShadowBeg;192 return (s & ~kShadowBeg) / kShadowCnt;240 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + kShadowBeg;254 return (s - kShadowBeg) / kShadowCnt;
57 const uptr kShadowCnt = 4; variable66 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
351 if (!IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))) { in MemoryAccessRange()353 shadow_mem + size * kShadowCnt / 8 - 1, addr + size - 1); in MemoryAccessRange()354 DCHECK(IsShadowMem((uptr)(shadow_mem + size * kShadowCnt / 8 - 1))); in MemoryAccessRange()387 shadow_mem += kShadowCnt; in MemoryAccessRange()396 shadow_mem += kShadowCnt; in MemoryAccessRange()
606 StoreShadow(shadow_mem + (cur.epoch() % kShadowCnt), store_word); in MemoryAccessImpl1()638 for (uptr i = 0; i < kShadowCnt; i++) { in ContainsSameAccessSlow()833 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet()835 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet()837 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()844 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()849 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()860 for (uptr j = 1; j < kShadowCnt; j++) in MemoryRangeSet()
73 CHECK_EQ(s0 + kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()75 CHECK_EQ(s0 + 2*kShadowSize*kShadowCnt, MemToShadow((uptr)&data[i])); in TEST()