Home
last modified time | relevance | path

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

/llvm-project-15.0.7/compiler-rt/lib/gwp_asan/
H A Dguarded_pool_allocator.cpp29 size_t roundUpTo(size_t Size, size_t Boundary) { in roundUpTo() function
83 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*Metadata), PageSize); in init()
88 BytesRequired = roundUpTo( in init()
142 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*Metadata), in uninitTestOnly()
148 roundUpTo(State.MaxSimultaneousAllocations * sizeof(*FreeSlots), in uninitTestOnly()
250 roundUpTo(Size, PageSize)); in allocate()
/llvm-project-15.0.7/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()), 0, &MapData); in ~PackedCounterArray()
230 const uptr PagesCount = roundUpTo(RegionSize, PageSize) / PageSize; in releaseFreeMemoryToOS()
H A Dwrappers_c_checks.h67 return roundUpTo(Size, PageSize) < Size; in checkForPvallocOverflow()
H A Dsecondary.h505 roundUpTo(roundUpTo(Size, Alignment) + LargeBlock::getHeaderSize() + in allocate()
554 CommitBase = roundUpTo(MapBase + PageSize + 1, Alignment) - PageSize; in allocate()
564 CommitBase + PageSize + roundUpTo(Size, PageSize) + PageSize; in allocate()
H A Dvector.h85 NewCapacity = roundUpTo(NewCapacity * sizeof(T), getPageSizeCached()); in reallocate()
H A Dcombined.h337 roundUpTo(Size, MinAlignment) +
383 const uptr UserPtr = roundUpTo(UnalignedUserPtr, Alignment);
442 const uptr NextPage = roundUpTo(TaggedUserPtr, getPageSizeCached());
455 Min(Size, roundUpTo(PrevEnd - TaggedUserPtr,
1194 uptr RoundOldPtr = roundUpTo(OldPtr, archMemoryTagGranuleSize()); in resizeTaggedChunk()
1199 RoundNewPtr = roundUpTo(NewPtr, archMemoryTagGranuleSize()); in resizeTaggedChunk()
H A Dchunk.h88 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()
345 roundUpTo(TotalUserBytes - MappedUser, MapSizeIncrement); in populateFreeList()
H A Dwrappers_c.inc135 size ? scudo::roundUpTo(size, PageSize) : PageSize,
H A Dprimary32.h294 Region = roundUpTo(MapBase, RegionSize); in allocateRegionSlow()
/llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/tests/
H A Dsecondary_test.cpp67 scudo::roundUpTo(reinterpret_cast<scudo::uptr>(P), Align)); in testSecondaryBasic()
125 constexpr scudo::uptr HeaderSize = scudo::roundUpTo(8, MinAlign); in TEST_F()
134 scudo::roundUpTo((1U << SizeLog) + Delta, MinAlign); in TEST_F()
140 scudo::roundUpTo(reinterpret_cast<scudo::uptr>(P), Align)); in TEST_F()
H A Drelease_test.cpp232 scudo::uptr P = scudo::roundUpTo(CurrentFreeRangeStart, PageSize); in testReleaseFreeMemoryToOS()
247 scudo::uptr P = scudo::roundUpTo(CurrentFreeRangeStart, PageSize); in testReleaseFreeMemoryToOS()
249 scudo::roundUpTo(MaxBlocks * BlockSize, PageSize); in testReleaseFreeMemoryToOS()
H A Dmemtag_test.cpp166 EXPECT_EQ(roundUpTo(TaggedEnd, archMemoryTagGranuleSize()), in TEST_F()
H A Dcombined_test.cpp41 scudo::roundUpTo(Size, MinAlignment) + in isPrimaryAllocation()
50 Size = scudo::roundUpTo(Size, MinAlignment); in checkMemoryTaggingMaybe()