reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

projects/compiler-rt/lib/asan/asan_allocator.cpp
  147                  RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY),
  426     uptr rounded_size = RoundUpTo(Max(size, kChunkHeader2Size), alignment);
  479       user_beg = RoundUpTo(user_beg, alignment);
  588                  RoundUpTo(m->UsedSize(), SHADOW_GRANULARITY),
  921   size = size ? RoundUpTo(size, PageSize) : PageSize;
projects/compiler-rt/lib/asan/asan_globals.cpp
   64   uptr aligned_size = RoundUpTo(g.size, SHADOW_GRANULARITY);
projects/compiler-rt/lib/asan/asan_interceptors.cpp
  262   ssize = RoundUpTo(ssize, PageSize);
projects/compiler-rt/lib/asan/asan_linux.cpp
  124   uptr shadow_size = RoundUpTo(kHighShadowEnd, granularity);
  130   uptr shadow_start = RoundUpTo(map_start + left_padding, alignment);
projects/compiler-rt/lib/asan/asan_malloc_linux.cpp
   43   uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize;
   72   uptr aligned_addr = RoundUpTo(addr, alignment);
   73   uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize);
projects/compiler-rt/lib/asan/asan_poisoning.cpp
  194   uptr aligned_b = RoundUpTo(beg, SHADOW_GRANULARITY);
  376   uptr c = RoundUpTo(Max(old_mid, new_mid), granularity);
  394   uptr b2 = RoundUpTo(new_mid, granularity);
projects/compiler-rt/lib/asan/asan_poisoning.h
   61     uptr page_beg = RoundUpTo(shadow_beg, page_size);
projects/compiler-rt/lib/asan/asan_shadow_setup.cpp
   49         RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1;
projects/compiler-rt/lib/asan/asan_thread.cpp
   81   uptr size = RoundUpTo(sizeof(AsanThread), PageSize);
  112   uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached());
  311     uptr tls_end_aligned = RoundUpTo(tls_end_, SHADOW_GRANULARITY);
projects/compiler-rt/lib/dfsan/dfsan_interceptors.cpp
   24     dfsan_set_label(0, res, RoundUpTo(length, GetPageSize()));
   32     dfsan_set_label(0, res, RoundUpTo(length, GetPageSize()));
projects/compiler-rt/lib/hwasan/hwasan.cpp
  279       const char *desc = name + RoundUpTo(nhdr->n_namesz, 4);
  282         note = desc + RoundUpTo(nhdr->n_descsz, 4);
projects/compiler-rt/lib/hwasan/hwasan_allocator.cpp
   97   uptr new_size = RoundUpTo(size, kShadowAlignment);
  330   size = size ? RoundUpTo(size, PageSize) : PageSize;
projects/compiler-rt/lib/hwasan/hwasan_dynamic_shadow.cpp
   52       RoundUpTo(shadow_size_bytes, granularity);
   58   const uptr shadow_start = RoundUpTo(map_start + left_padding, alignment);
projects/compiler-rt/lib/hwasan/hwasan_interceptors.cpp
   57   uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize;
projects/compiler-rt/lib/hwasan/hwasan_poisoning.cpp
   29   uptr page_start = RoundUpTo(shadow_start, page_size);
   48   uptr end = RoundUpTo(p + size, kShadowAlignment);
projects/compiler-rt/lib/hwasan/hwasan_thread_list.h
  119         RoundUpTo(ring_buffer_size_ + sizeof(Thread), ring_buffer_size_ * 2);
projects/compiler-rt/lib/lsan/lsan_allocator.cpp
  217   size = size ? RoundUpTo(size, PageSize) : PageSize;
projects/compiler-rt/lib/msan/msan_allocator.cpp
  285   size = size ? RoundUpTo(size, PageSize) : PageSize;
projects/compiler-rt/lib/msan/msan_interceptors.cpp
   86   uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize;
  965   if (res != (void *)-1) __msan_unpoison(res, RoundUpTo(length, GetPageSize()));
projects/compiler-rt/lib/msan/msan_poisoning.cpp
  129     uptr page_beg = RoundUpTo(shadow_beg, PageSize);
projects/compiler-rt/lib/msan/msan_thread.cpp
   13   uptr size = RoundUpTo(sizeof(MsanThread), PageSize);
   62   uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached());
projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator.cpp
  214   size = RoundUpTo(size, low_level_alloc_min_alignment);
projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator_checks.h
   71   return RoundUpTo(size, page_size) < size;
projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator_combined.h
   60       size = RoundUpTo(size, alignment);
projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h
  314     return RoundUpTo(sizeof(RegionInfo) * kNumClassesRounded,
  351           (RoundUpTo(n, 1ULL << packing_ratio_log) >> packing_ratio_log) *
  660       uptr new_mapped_free_array = RoundUpTo(needed_space, kFreeArrayMapSize);
  713           RoundUpTo(total_user_bytes - region->mapped_user, kUserMapSize);
  731           RoundUpTo(total_meta_bytes - region->mapped_meta, kMetaMapSize) : 0;
  849         RoundUpTo(region->allocated_user, page_size) / page_size,
projects/compiler-rt/lib/sanitizer_common/sanitizer_allocator_secondary.h
  169     return RoundUpTo(GetHeader(p)->size, page_size_);
  314     return RoundUpTo(size, page_size_) + page_size_;
projects/compiler-rt/lib/sanitizer_common/sanitizer_common.h
  526         RoundUpTo(new_capacity * sizeof(T), GetPageSizeCached());
projects/compiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
 3000       RoundUpTo(sizeof(__sanitizer_cmsghdr), sizeof(uptr));
 3009     if (p + RoundUpTo(cmsg->cmsg_len, sizeof(uptr)) > control_end) break;
 3022     p += RoundUpTo(cmsg->cmsg_len, sizeof(uptr));
projects/compiler-rt/lib/sanitizer_common/sanitizer_libc.cpp
  264   uptr *aligned_beg = (uptr *)RoundUpTo((uptr)beg, sizeof(uptr));
projects/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
 1184       seg_end = RoundUpTo(seg_end, GetPageSizeCached());
projects/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cpp
  256   g_tls_size = RoundUpTo(tls_size, tls_align);
projects/compiler-rt/lib/sanitizer_common/sanitizer_posix.cpp
   45   size = RoundUpTo(size, GetPageSizeCached());
   67   size = RoundUpTo(size, GetPageSizeCached());
  104   size = RoundUpTo(size, GetPageSizeCached());
  116   size = RoundUpTo(size, GetPageSizeCached());
  198   *buff_size = RoundUpTo(fsize, GetPageSizeCached());
projects/compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp
   61   uptr beg_aligned = RoundUpTo(beg, page_size);
  309   size = RoundUpTo(size, GetPageSizeCached());
projects/compiler-rt/lib/tsan/rtl/tsan_clock.cpp
  531   uptr top = ClockBlock::kClockCount - RoundUpTo(blocks_ + 1, ratio) / ratio;
projects/compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
  815     sz = sz ? RoundUpTo(sz, PageSize) : PageSize;
projects/compiler-rt/lib/tsan/rtl/tsan_mman.cpp
  302   sz = sz ? RoundUpTo(sz, PageSize) : PageSize;
projects/compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
  257   uptr shadow_end = RoundUpTo((uptr)MemToShadow(addr + size), kPageSize);
  267   meta_end = RoundUpTo(meta_end, 64 << 10);
  277     meta_end = RoundUpTo(meta_end, 64 << 10);
projects/compiler-rt/lib/tsan/rtl/tsan_sync.cpp
   77   uptr sz = RoundUpTo(b->siz, kMetaShadowCell);
projects/compiler-rt/lib/xray/xray_allocator.h
   40   uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached());
   80   uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached());
   91   uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached());
  129   uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached());
  226       : MaxMemory(RoundUpTo(M, kCacheLineSize)),