Home
last modified time | relevance | path

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

/external/scudo/standalone/tests/
Dsecondary_test.cpp40 scudo::roundUpTo(reinterpret_cast<scudo::uptr>(P), Align)); in testSecondaryBasic()
77 constexpr scudo::uptr HeaderSize = scudo::roundUpTo(8, MinAlign); in TEST()
88 scudo::roundUpTo((1U << SizeLog) + Delta, MinAlign); in TEST()
94 scudo::roundUpTo(reinterpret_cast<scudo::uptr>(P), Align)); in TEST()
Drelease_test.cpp228 scudo::uptr P = scudo::roundUpTo(CurrentFreeRangeStart, PageSize); in testReleaseFreeMemoryToOS()
243 scudo::uptr P = scudo::roundUpTo(CurrentFreeRangeStart, PageSize); in testReleaseFreeMemoryToOS()
Dcombined_test.cpp44 scudo::roundUpTo(Size, MinAlignment) + in isTaggedAllocation()
55 Size = scudo::roundUpTo(Size, scudo::archMemoryTagGranuleSize()); in checkMemoryTaggingMaybe()
/external/scudo/standalone/
Dmemtag.h120 uptr RoundOldPtr = roundUpTo(OldPtr, 16); in resizeTaggedChunk()
124 uptr RoundNewPtr = untagPointer(roundUpTo(NewPtr, 16)); in resizeTaggedChunk()
Dsecondary.h38 return roundUpTo(sizeof(Header), 1U << SCUDO_MIN_ALIGNMENT_LOG); in getHeaderSize()
333 roundUpTo(Size + LargeBlock::getHeaderSize(), PageSize); in allocate()
373 CommitBase = roundUpTo(MapBase + PageSize + 1, AlignmentHint) - PageSize; in allocate()
383 roundUpTo((Size - AlignmentHint), PageSize) + in allocate()
Dwrappers_c_checks.h62 return roundUpTo(Size, PageSize) < Size; in checkForPvallocOverflow()
Drelease.h73 roundUpTo(NumCounters, static_cast<uptr>(1U) << PackingRatioLog) >> in PackedCounterArray()
224 const uptr PagesCount = roundUpTo(RegionSize, PageSize) / PageSize; in releaseFreeMemoryToOS()
Dcombined.h228 if (void *Ptr = GuardedAlloc.allocate(roundUpTo(Size, Alignment)))
249 roundUpTo(Size, MinAlignment) +
298 const uptr UserPtr = roundUpTo(UnalignedUserPtr, Alignment);
356 const uptr NextPage = roundUpTo(TaggedUserPtr, getPageSizeCached());
Dvector.h86 roundUpTo(NewCapacity * sizeof(T), getPageSizeCached()); in reallocate()
Dcommon.h29 inline constexpr uptr roundUpTo(uptr X, uptr Boundary) { in roundUpTo() function
Dchunk.h86 return roundUpTo(sizeof(PackedHeader), 1U << SCUDO_MIN_ALIGNMENT_LOG); in getHeaderSize()
Dwrappers_c.inc122 size ? scudo::roundUpTo(size, PageSize) : PageSize,
Dprimary64.h303 roundUpTo(TotalUserBytes - MappedUser, MapSizeIncrement); in populateFreeList()
Dprimary32.h265 Region = roundUpTo(MapBase, RegionSize); in allocateRegionSlow()