Home
last modified time | relevance | path

Searched refs:roundUpTo (Results 1 – 12 of 12) sorted by relevance

/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp29 size_t roundUpTo(size_t Size, size_t Boundary) { in roundUpTo() function
76 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*Metadata), PageSize); in init()
81 BytesRequired = roundUpTo( in init()
135 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*Metadata), in uninitTestOnly()
141 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly()
243 roundUpTo(Size, PageSize)); in allocate()
/freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Dtrusty.cpp40 Start = roundUpTo(ProgramBreak, SBRK_ALIGN); in map()
48 End = roundUpTo(Start + Size, SBRK_ALIGN); in map()
H A Drelease.h75 roundUpTo(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in PackedCounterArray()
84 map(nullptr, roundUpTo(BufferSize, getPageSizeCached()), in PackedCounterArray()
95 roundUpTo(BufferSize, getPageSizeCached())); in ~PackedCounterArray()
229 const uptr PagesCount = roundUpTo(RegionSize, PageSize) / PageSize; in releaseFreeMemoryToOS()
H A Dwrappers_c_checks.h62 return roundUpTo(Size, PageSize) < Size; in checkForPvallocOverflow()
H A Dsecondary.h491 roundUpTo(roundUpTo(Size, Alignment) + LargeBlock::getHeaderSize() + in allocate()
540 CommitBase = roundUpTo(MapBase + PageSize + 1, Alignment) - PageSize; in allocate()
550 CommitBase + PageSize + roundUpTo(Size, PageSize) + PageSize; in allocate()
H A Dvector.h84 NewCapacity = roundUpTo(NewCapacity * sizeof(T), getPageSizeCached()); in reallocate()
H A Dcombined.h327 roundUpTo(Size, MinAlignment) +
373 const uptr UserPtr = roundUpTo(UnalignedUserPtr, Alignment);
432 const uptr NextPage = roundUpTo(TaggedUserPtr, getPageSizeCached());
445 Min(Size, roundUpTo(PrevEnd - TaggedUserPtr,
1184 uptr RoundOldPtr = roundUpTo(OldPtr, archMemoryTagGranuleSize()); in resizeTaggedChunk()
1189 RoundNewPtr = roundUpTo(NewPtr, archMemoryTagGranuleSize()); in resizeTaggedChunk()
H A Dchunk.h87 return roundUpTo(sizeof(PackedHeader), 1U << SCUDO_MIN_ALIGNMENT_LOG); in getHeaderSize()
H A Dcommon.h30 inline constexpr uptr roundUpTo(uptr X, uptr Boundary) { in roundUpTo() function
H A Dprimary64.h55 ? roundUpTo(sizeof(TransferBatch), 1U << CompactPtrScale) in getSizeByClassId()
343 roundUpTo(TotalUserBytes - MappedUser, MapSizeIncrement); in populateFreeList()
H A Dwrappers_c.inc118 size ? scudo::roundUpTo(size, PageSize) : PageSize,
H A Dprimary32.h294 Region = roundUpTo(MapBase, RegionSize); in allocateRegionSlow()