Home
last modified time | relevance | path

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

12

/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/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/compiler-rt/lib/msan/
Dmsan_thread.cc13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create()
62 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
Dmsan_poisoning.cc130 uptr page_beg = RoundUpTo(shadow_beg, PageSize); in SetShadow()
Dmsan_interceptors.cc215 size = RoundUpTo(size, PageSize); in INTERCEPTOR()
970 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
988 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
/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()
Dsanitizer_allocator.h484 return RoundUpTo(sizeof(RegionInfo) * kNumClassesRounded, in AdditionalSize()
724 size = RoundUpTo(size, GetPageSizeCached()); in MapWithCallback()
1137 return RoundUpTo(GetHeader(p)->size, page_size_); in GetActuallyAllocatedSize()
1268 return RoundUpTo(size, page_size_) + page_size_; in RoundUpMapSize()
1320 size = RoundUpTo(size, alignment);
1330 internal_bzero_aligned16(res, RoundUpTo(size, 16));
Dsanitizer_allocator.cc168 size = RoundUpTo(size, 8); in Allocate()
Dsanitizer_libc.cc271 uptr *aligned_beg = (uptr *)RoundUpTo((uptr)beg, sizeof(uptr)); in mem_is_zero()
Dsanitizer_posix_libcdep.cc266 RoundUpTo(size, PageSize), PROT_READ | PROT_WRITE, in MmapFixedNoReserve()
Dsanitizer_linux_libcdep.cc183 g_tls_size = RoundUpTo(tls_size, tls_align); in InitTlsSize()
Dsanitizer_coverage_libcdep.cc354 n = RoundUpTo(n, 16); // The compiler must ensure that counters is 16-aligned. in InitializeCounters()
1013 RoundUpTo(coverage_data.size() * sizeof(coverage_data.data()[0]), 16)); in __sanitizer_reset_coverage()
Dsanitizer_malloc_mac.inc38 uptr allocated_size = RoundUpTo(sizeof(sanitizer_zone), page_size);
/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()
Dasan_allocator.cc142 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY), in Recycle()
344 uptr rounded_size = RoundUpTo(Max(size, kChunkHeader2Size), alignment); in Allocate()
393 user_beg = RoundUpTo(user_beg, alignment); in Allocate()
490 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY), in QuarantineChunk()
757 size = RoundUpTo(size, PageSize); in asan_pvalloc()
Dasan_poisoning.h55 uptr page_beg = RoundUpTo(shadow_beg, page_size); in FastPoisonShadow()
Dasan_thread.cc87 uptr size = RoundUpTo(sizeof(AsanThread), PageSize); in Create()
118 uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached()); in Destroy()
Dasan_malloc_linux.cc39 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool()
Dasan_globals.cc64 uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY); in PoisonRedZones()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_clock.cc302 if (RoundUpTo(nclk, ClockBlock::kClockCount) <= in Resize()
303 RoundUpTo(size_, ClockBlock::kClockCount)) { in Resize()
336 for (uptr i = RoundUpTo(size_, ClockBlock::kClockCount); in Resize()
Dtsan_sync.cc78 uptr sz = RoundUpTo(b->siz, kMetaShadowCell); in FreeBlock()
Dtsan_rtl.cc253 meta_end = RoundUpTo(meta_end, 64 << 10); in MapShadow()
262 meta_end = RoundUpTo(meta_end, 64 << 10); in MapShadow()
/external/compiler-rt/lib/scudo/
Dscudo_allocator.cpp331 uptr RoundedSize = RoundUpTo(Size, MinAlignment); in allocate()
357 ChunkBeg = RoundUpTo(ChunkBeg, Alignment); in allocate()
574 Size = RoundUpTo(Size, PageSize); in scudoPvalloc()
/external/compiler-rt/lib/interception/
Dinterception_win.cc163 static uptr RoundUpTo(uptr size, uptr boundary) { in RoundUpTo() function
312 void *page = ::VirtualAlloc((void*)RoundUpTo(address, granularity), in AllocateTrampolineRegion()
/external/compiler-rt/lib/lsan/
Dlsan_interceptors.cc148 size = RoundUpTo(size, PageSize); in INTERCEPTOR()

12