Home
last modified time | relevance | path

Searched refs:kShadowCell (Results 1 – 4 of 4) sorted by relevance

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_thread.cpp381 bool unaligned = (addr % kShadowCell) != 0; in MemoryAccessRange()
384 for (; addr % kShadowCell && size; addr++, size--) { in MemoryAccessRange()
388 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange()
395 for (; size >= kShadowCell; addr += kShadowCell, size -= kShadowCell) { in MemoryAccessRange()
409 cur.SetAddr0AndSizeLog(addr & (kShadowCell - 1), kAccessSizeLog); in MemoryAccessRange()
H A Dtsan_rtl.cpp339 for (int x = -(int)kShadowCell; x <= (int)kShadowCell; x += kShadowCell) { in CheckShadowMapping()
340 const uptr p = RoundDown(p0 + x, kShadowCell); in CheckShadowMapping()
937 uptr offset = addr % kShadowCell; in MemoryRangeSet()
939 offset = kShadowCell - offset; in MemoryRangeSet()
952 size = (size + (kShadowCell - 1)) & ~(kShadowCell - 1); in MemoryRangeSet()
957 CHECK(IsShadowMem((uptr)(p + size * kShadowCnt / kShadowCell - 1))); in MemoryRangeSet()
959 for (uptr i = 0; i < size / kShadowCell * kShadowCnt;) { in MemoryRangeSet()
968 u64 *end = begin + size / kShadowCell * kShadowCnt; in MemoryRangeSet()
H A Dtsan_defs.h76 const uptr kShadowCell = 8; variable
82 const uptr kShadowMultiplier = kShadowSize * kShadowCnt / kShadowCell;
H A Dtsan_platform.h934 return (((x) & ~(Mapping::kAppMemMsk | (kShadowCell - 1))) in MemToShadowImpl()
938 return ((x & ~(kShadowCell - 1)) * kShadowCnt) | Mapping::kShadowBeg; in MemToShadowImpl()
940 return ((x & ~(kShadowCell - 1)) * kShadowCnt) + Mapping::kShadowBeg; in MemToShadowImpl()