Home
last modified time | relevance | path

Searched refs:kAlign (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/
H A Dnew-test.cpp25 constexpr auto kAlign = std::align_val_t{8}; in main()
26 void *a2 = ::operator new(4, kAlign); in main()
28 assert(reinterpret_cast<uintptr_t>(a2) % static_cast<uintptr_t>(kAlign) == 0); in main()
30 ::operator delete(a2, kAlign); in main()
/llvm-project-15.0.7/compiler-rt/lib/tsan/tests/rtl/
H A Dtsan_test_util_posix.cpp80 const int kAlign = 16; in allocate_addr() local
81 CHECK(offset_from_aligned < kAlign); in allocate_addr()
82 size = (size + 2 * kAlign) & ~(kAlign - 1); in allocate_addr()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_rtl_access.cpp529 UNUSED const uptr kAlign = kShadowCnt * kShadowSize; in ShadowSet() local
530 DCHECK_EQ(reinterpret_cast<uptr>(p) % kAlign, 0); in ShadowSet()
531 DCHECK_EQ(reinterpret_cast<uptr>(end) % kAlign, 0); in ShadowSet()