Home
last modified time | relevance | path

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

/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 sizeof(GifColorType) * RoundUpTo); 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.cc212 size = RoundUpTo(size, PageSize); in INTERCEPTOR()
1042 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
1060 __msan_unpoison(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_posix.cc116 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDie()
141 RoundUpTo(size, PageSize), in MmapNoReserveOrDie()
155 RoundUpTo(size, PageSize), in MmapFixedOrDie()
222 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
Dsanitizer_allocator.cc116 size = RoundUpTo(size, 8); in Allocate()
Dsanitizer_allocator.h469 return RoundUpTo(sizeof(RegionInfo) * kNumClassesRounded, in AdditionalSize()
703 size = RoundUpTo(size, GetPageSizeCached()); in MapWithCallback()
1113 return RoundUpTo(GetHeader(p)->size, page_size_); in GetActuallyAllocatedSize()
1244 return RoundUpTo(size, page_size_) + page_size_; in RoundUpMapSize()
1296 size = RoundUpTo(size, alignment);
1306 internal_bzero_aligned16(res, RoundUpTo(size, 16));
Dsanitizer_posix_libcdep.cc261 RoundUpTo(size, PageSize), PROT_READ | PROT_WRITE, in MmapFixedNoReserve()
Dsanitizer_libc.cc271 uptr *aligned_beg = (uptr *)RoundUpTo((uptr)beg, sizeof(uptr)); in mem_is_zero()
Dsanitizer_coverage_libcdep.cc338 n = RoundUpTo(n, 16); // The compiler must ensure that counters is 16-aligned. in InitializeCounters()
938 RoundUpTo(coverage_data.size() * sizeof(coverage_data.data()[0]), 16)); in __sanitizer_reset_coverage()
Dsanitizer_linux_libcdep.cc203 g_tls_size = RoundUpTo(tls_size, tls_align); in InitTlsSize()
Dsanitizer_malloc_mac.inc38 uptr allocated_size = RoundUpTo(sizeof(sanitizer_zone), page_size);
Dsanitizer_common.h431 INLINE uptr RoundUpTo(uptr size, uptr boundary) { in RoundUpTo() function
Dsanitizer_linux.cc801 seg_end = RoundUpTo(seg_end, GetPageSizeCached()); in ForEachMappedRegion()
/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_poisoning.h55 uptr page_beg = RoundUpTo(shadow_beg, page_size); in FastPoisonShadow()
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()
491 RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY), in QuarantineChunk()
741 size = RoundUpTo(size, PageSize); in asan_pvalloc()
Dasan_thread.cc87 uptr size = RoundUpTo(sizeof(AsanThread), PageSize); in Create()
118 uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached()); in Destroy()
Dasan_globals.cc64 uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY); in PoisonRedZones()
Dasan_interceptors.cc315 ssize = RoundUpTo(ssize, PageSize); in ClearShadowMemoryForContextStack()
/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/lsan/
Dlsan_interceptors.cc138 size = RoundUpTo(size, PageSize); in INTERCEPTOR()