Home
last modified time | relevance | path

Searched refs:RoundUpTo (Results 1 – 25 of 102) sorted by relevance

12345

/external/llvm-project/compiler-rt/lib/scudo/
Dscudo_allocator_secondary.h58 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()
Dscudo_allocator.h63 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/
Ddfsan_interceptors.cpp41 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/
Dgifalloc.c118 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/
Dxray_allocator.h40 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()
Dxray_utils.cpp56 if (RoundUpTo(Offset, PageSize) != RoundUpTo(Offset + TotalBytes, PageSize)) { in WriteAll()
/external/compiler-rt/lib/dfsan/
Ddfsan_interceptors.cc23 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/
Dhwasan_poisoning.cpp29 uptr page_start = RoundUpTo(shadow_start, page_size); in TagMemoryAligned()
48 uptr end = RoundUpTo(p + size, kShadowAlignment); in TagMemory()
Dhwasan_globals.cpp65 const char *desc = name + RoundUpTo(nhdr->n_namesz, 4); in HwasanGlobalsFor()
70 note = desc + RoundUpTo(nhdr->n_descsz, 4); in HwasanGlobalsFor()
Dhwasan_dynamic_shadow.cpp39 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/
Dallocator_test.cpp52 GetPageSizeCached() / RoundUpTo(sizeof(OddSizedData), kCacheLineSize); in TEST()
71 GetPageSizeCached() / RoundUpTo(sizeof(OddSizedData), kCacheLineSize); in TEST()
/external/compiler-rt/lib/msan/
Dmsan_thread.cc13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create()
62 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
/external/llvm-project/compiler-rt/lib/memprof/
Dmemprof_malloc_linux.cpp43 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()
Dmemprof_thread.cpp78 uptr size = RoundUpTo(sizeof(MemprofThread), PageSize); in Create()
103 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
Dmemprof_shadow_setup.cpp27 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cpp45 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()
Dsanitizer_fuchsia.cpp171 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()
Dsanitizer_linux_libcdep.cpp255 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()
Dsanitizer_allocator_checks.h71 return RoundUpTo(size, page_size) < size; in CheckForPvallocOverflow()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc126 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/
Dmsan_thread.cpp13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create()
63 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
/external/llvm-project/compiler-rt/lib/asan/
Dasan_malloc_linux.cpp43 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()
Dasan_premap_shadow.cpp29 return RoundUpTo(GetMaxVirtualAddress() >> SHADOW_SCALE, granularity); in PremapShadowSize()
/external/compiler-rt/lib/asan/
Dasan_poisoning.cc70 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/
Dsafestack_util.h31 inline size_t RoundUpTo(size_t size, size_t boundary) { in RoundUpTo() function

12345