/external/llvm-project/compiler-rt/lib/scudo/ |
D | scudo_allocator_secondary.h | 58 return RoundUpTo(sizeof(Header), MinAlignment); in getHeaderSize() 82 ReservedSize = RoundUpTo(ReservedSize, PageSize); in Allocate() 99 uptr CommittedEnd = RoundUpTo(UserEnd, PageSize); in Allocate() 106 UserBeg = RoundUpTo(UserBeg, Alignment); in Allocate() 115 CommittedEnd = RoundUpTo(UserEnd, PageSize); in Allocate()
|
D | scudo_allocator.h | 63 constexpr uptr RoundUpTo(uptr Size, uptr Boundary) { in RoundUpTo() function 69 return RoundUpTo(sizeof(PackedHeader), MinAlignment); in getHeaderSize()
|
/external/llvm-project/compiler-rt/lib/dfsan/ |
D | dfsan_interceptors.cpp | 41 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR() 49 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR() 56 dfsan_set_label(0, addr, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR()
|
/external/giflib/ |
D | gifalloc.c | 118 int i, j, CrntSlot, RoundUpTo, NewGifBitSize; in GifUnionColorMap() local 176 RoundUpTo = (1 << NewGifBitSize); in GifUnionColorMap() 178 if (RoundUpTo != ColorUnion->ColorCount) { in GifUnionColorMap() 186 for (j = CrntSlot; j < RoundUpTo; j++) in GifUnionColorMap() 190 if (RoundUpTo < ColorUnion->ColorCount) { in GifUnionColorMap() 192 RoundUpTo, sizeof(GifColorType)); in GifUnionColorMap() 201 ColorUnion->ColorCount = RoundUpTo; in GifUnionColorMap()
|
/external/llvm-project/compiler-rt/lib/xray/ |
D | xray_allocator.h | 40 uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached()); in allocate() 80 uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached()); in deallocate() 91 uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached()); in allocateBuffer() 129 uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached()); in deallocateBuffer() 226 : MaxMemory(RoundUpTo(M, kCacheLineSize)), in Allocator()
|
D | xray_utils.cpp | 56 if (RoundUpTo(Offset, PageSize) != RoundUpTo(Offset + TotalBytes, PageSize)) { in WriteAll()
|
/external/compiler-rt/lib/dfsan/ |
D | dfsan_interceptors.cc | 23 dfsan_set_label(0, res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR() 31 dfsan_set_label(0, res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
|
/external/llvm-project/compiler-rt/lib/hwasan/ |
D | hwasan_poisoning.cpp | 29 uptr page_start = RoundUpTo(shadow_start, page_size); in TagMemoryAligned() 48 uptr end = RoundUpTo(p + size, kShadowAlignment); in TagMemory()
|
D | hwasan_globals.cpp | 65 const char *desc = name + RoundUpTo(nhdr->n_namesz, 4); in HwasanGlobalsFor() 70 note = desc + RoundUpTo(nhdr->n_descsz, 4); in HwasanGlobalsFor()
|
D | hwasan_dynamic_shadow.cpp | 39 return RoundUpTo(GetMaxVirtualAddress() >> kShadowScale, in PremapShadowSize() 60 const uptr shadow_size = RoundUpTo(shadow_size_bytes, granularity); in FindPremappedShadowStart()
|
/external/llvm-project/compiler-rt/lib/xray/tests/unit/ |
D | allocator_test.cpp | 52 GetPageSizeCached() / RoundUpTo(sizeof(OddSizedData), kCacheLineSize); in TEST() 71 GetPageSizeCached() / RoundUpTo(sizeof(OddSizedData), kCacheLineSize); in TEST()
|
/external/compiler-rt/lib/msan/ |
D | msan_thread.cc | 13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create() 62 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
|
/external/llvm-project/compiler-rt/lib/memprof/ |
D | memprof_malloc_linux.cpp | 43 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool() 72 uptr aligned_addr = RoundUpTo(addr, alignment); in PosixMemalignFromLocalPool() 73 uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize); in PosixMemalignFromLocalPool()
|
D | memprof_thread.cpp | 78 uptr size = RoundUpTo(sizeof(MemprofThread), PageSize); in Create() 103 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
|
D | memprof_shadow_setup.cpp | 27 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix.cpp | 45 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDie() 67 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDieOnFatalError() 104 size = RoundUpTo(size, GetPageSizeCached()); in MmapNoReserveOrDie() 116 size = RoundUpTo(size, GetPageSizeCached()); in MmapFixedImpl() 198 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
|
D | sanitizer_fuchsia.cpp | 171 size = RoundUpTo(size, PAGE_SIZE); in DoAnonymousMmapOrDie() 217 init_size = RoundUpTo(init_size, PAGE_SIZE); in Init() 239 map_size = RoundUpTo(map_size, PAGE_SIZE); in DoMmapFixedOrDie() 279 size = RoundUpTo(size, PAGE_SIZE); in UnmapOrDieVmar() 347 addr = RoundUpTo(map_addr, alignment); in MmapAlignedOrDieOnFatalError() 416 size_t map_size = RoundUpTo(max_len, PAGE_SIZE); in ReadFileToBuffer()
|
D | sanitizer_linux_libcdep.cpp | 255 g_tls_size = RoundUpTo(tls_size, tls_align); in InitTlsSize() 351 RoundUpTo(ThreadDescriptorSize() + kTcbHead, kTlsAlign); in TlsPreTcbSize() 527 return RoundUpTo(g_tls_size + TlsPreTcbSize(), 16); in GetTlsSize() 895 const uptr shadow_size = RoundUpTo(shadow_size_bytes, granularity); in MapDynamicShadow() 901 const uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadow()
|
D | sanitizer_allocator_checks.h | 71 return RoundUpTo(size, page_size) < size; in CheckForPvallocOverflow()
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix.cc | 126 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDie() 171 RoundUpTo(size, PageSize), in MmapNoReserveOrDie() 185 RoundUpTo(size, PageSize), in MmapFixedOrDie() 256 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
|
/external/llvm-project/compiler-rt/lib/msan/ |
D | msan_thread.cpp | 13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create() 63 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
|
/external/llvm-project/compiler-rt/lib/asan/ |
D | asan_malloc_linux.cpp | 43 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool() 72 uptr aligned_addr = RoundUpTo(addr, alignment); in PosixMemalignFromLocalPool() 73 uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize); in PosixMemalignFromLocalPool()
|
D | asan_premap_shadow.cpp | 29 return RoundUpTo(GetMaxVirtualAddress() >> SHADOW_SCALE, granularity); in PremapShadowSize()
|
/external/compiler-rt/lib/asan/ |
D | asan_poisoning.cc | 70 uptr shadow_beg = RoundUpTo(MemToShadow(p), page_size); in FlushUnneededASanShadowMemory() 191 uptr aligned_b = RoundUpTo(beg, SHADOW_GRANULARITY); in __asan_region_is_poisoned() 349 uptr c = RoundUpTo(Max(old_mid, new_mid), granularity); in __sanitizer_annotate_contiguous_container() 367 uptr b2 = RoundUpTo(new_mid, granularity); in __sanitizer_annotate_contiguous_container()
|
/external/llvm-project/compiler-rt/lib/safestack/ |
D | safestack_util.h | 31 inline size_t RoundUpTo(size_t size, size_t boundary) { in RoundUpTo() function
|