Home
last modified time | relevance | path

Searched refs:MinAlignment (Results 1 – 4 of 4) sorted by relevance

/external/compiler-rt/lib/scudo/
Dscudo_allocator.cpp266 static const uptr MinAlignment = 1 << MinAlignmentLog; member
325 if (Alignment < MinAlignment) in allocate()
326 Alignment = MinAlignment; in allocate()
331 uptr RoundedSize = RoundUpTo(Size, MinAlignment); in allocate()
333 if (Alignment > MinAlignment) in allocate()
341 Ptr = BackendAllocator.Allocate(&Cache, NeededSize, MinAlignment); in allocate()
345 MinAlignment); in allocate()
385 if (!IsAligned(ChunkBeg, MinAlignment)) { in deallocate()
486 void *NewPtr = allocate(NewSize, MinAlignment, FromMalloc); in reallocate()
511 void *Ptr = allocate(Total, MinAlignment, FromMalloc); in calloc()
[all …]
/external/scudo/standalone/
Dcombined.h222 uptr Alignment = MinAlignment,
240 if (UNLIKELY(Alignment < MinAlignment))
241 Alignment = MinAlignment;
249 roundUpTo(Size, MinAlignment) +
250 ((Alignment > MinAlignment) ? Alignment : Chunk::getHeaderSize());
398 UNUSED uptr Alignment = MinAlignment) {
419 if (UNLIKELY(!isAligned(reinterpret_cast<uptr>(Ptr), MinAlignment)))
448 void *reallocate(void *OldPtr, uptr NewSize, uptr Alignment = MinAlignment) {
475 if (UNLIKELY(!isAligned(reinterpret_cast<uptr>(OldPtr), MinAlignment)))
681 if (!Ptr || !isAligned(reinterpret_cast<uptr>(Ptr), MinAlignment)) in isOwned()
[all …]
/external/scudo/standalone/tests/
Dcombined_test.cpp40 const scudo::uptr MinAlignment = 1UL << SCUDO_MIN_ALIGNMENT_LOG; in isTaggedAllocation() local
41 if (Alignment < MinAlignment) in isTaggedAllocation()
42 Alignment = MinAlignment; in isTaggedAllocation()
44 scudo::roundUpTo(Size, MinAlignment) + in isTaggedAllocation()
45 ((Alignment > MinAlignment) ? Alignment : scudo::Chunk::getHeaderSize()); in isTaggedAllocation()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DSimplifyCFG.cpp3030 unsigned MinAlignment; in mergeConditionalStoreToAddress() local
3032 std::tie(MinAlignment, MaxAlignment) = std::minmax(PAlignment, QAlignment); in mergeConditionalStoreToAddress()
3037 if (MinAlignment != 0) { in mergeConditionalStoreToAddress()
3039 SI->setAlignment(MinAlignment); in mergeConditionalStoreToAddress()