/art/libartbase/base/ |
D | length_prefixed_array.h | 36 T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 38 return AtUnchecked(index, element_size, alignment); 41 const T& At(size_t index, size_t element_size = sizeof(T), size_t alignment = alignof(T)) const { 43 return AtUnchecked(index, element_size, alignment); 46 StrideIterator<T> begin(size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 47 return StrideIterator<T>(&AtUnchecked(0, element_size, alignment), element_size); 51 size_t alignment = alignof(T)) const { 52 return StrideIterator<const T>(&AtUnchecked(0, element_size, alignment), element_size); 55 StrideIterator<T> end(size_t element_size = sizeof(T), size_t alignment = alignof(T)) { 56 return StrideIterator<T>(&AtUnchecked(size_, element_size, alignment), element_size); [all …]
|
D | zip_archive.cc | 52 bool ZipEntry::IsAlignedTo(size_t alignment) const { in IsAlignedTo() 53 DCHECK(IsPowerOfTwo(alignment)) << alignment; in IsAlignedTo() 54 return IsAlignedParam(zip_entry_->offset, static_cast<int>(alignment)); in IsAlignedTo() 193 size_t alignment) { in MapDirectlyOrExtract() argument 194 if (IsUncompressed() && IsAlignedTo(alignment) && GetFileDescriptor(handle_) >= 0) { in MapDirectlyOrExtract()
|
D | zip_archive.h | 63 size_t alignment); 69 bool IsAlignedTo(size_t alignment) const;
|
D | bit_utils.h | 216 #define CHECK_ALIGNED(value, alignment) \ argument 217 CHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value) 219 #define DCHECK_ALIGNED(value, alignment) \ argument 220 DCHECK(::art::IsAligned<alignment>(value)) << reinterpret_cast<const void*>(value) 222 #define CHECK_ALIGNED_PARAM(value, alignment) \ argument 223 CHECK(::art::IsAlignedParam(value, alignment)) << reinterpret_cast<const void*>(value) 225 #define DCHECK_ALIGNED_PARAM(value, alignment) \ argument 226 DCHECK(::art::IsAlignedParam(value, alignment)) << reinterpret_cast<const void*>(value)
|
D | array_slice.h | 61 size_t alignment = alignof(T)) 63 lpa != nullptr && lpa->size() != 0 ? &lpa->At(0, element_size, alignment) : nullptr,
|
D | safe_copy_test.cc | 81 TEST(SafeCopyTest, alignment) { in TEST() argument
|
/art/libdexfile/dex/ |
D | compact_dex_utils.h | 29 size_t alignment) { in AlignmentPadVector() argument 30 while (!IsAlignedParam(dest->size(), alignment)) { in AlignmentPadVector()
|
D | dex_file_verifier.cc | 227 bool CheckValidOffsetAndSize(uint32_t offset, uint32_t size, size_t alignment, const char* label); 557 size_t alignment, in CheckValidOffsetAndSize() argument 569 if (alignment != 0 && !IsAlignedParam(offset, alignment)) { in CheckValidOffsetAndSize() 570 ErrorStringPrintf("Offset(%d) should be aligned by %zu for %s.", offset, alignment, label); in CheckValidOffsetAndSize()
|
/art/tools/dexfuzz/src/dexfuzz/rawdex/ |
D | DexRandomAccessFile.java | 298 public void alignForwards(int alignment) throws IOException { in alignForwards() argument 300 long mask = alignment - 1; in alignForwards() 302 int extra = alignment - (int) (offset & mask); in alignForwards() 311 public void alignBackwards(int alignment) throws IOException { in alignBackwards() argument 313 long mask = alignment - 1; in alignBackwards()
|
/art/test/667-checker-simd-alignment/ |
D | info.txt | 1 Test SIMD vectorization alignment optimizations.
|
/art/runtime/arch/arm/ |
D | asm_support_arm.S | 57 .macro DEF_ENTRY thumb_or_arm, name, alignment argument 72 .balign \alignment, 0xFF 97 .macro ENTRY_ALIGNED name, alignment argument 98 DEF_ENTRY .thumb_func, \name, \alignment 185 sub sp, #8 @ 2 words of space, alignment padding and Method*
|
/art/libelffile/dwarf/ |
D | writer.h | 160 void Pad(int alignment) { in Pad() argument 161 DCHECK_NE(alignment, 0); in Pad() 162 data_->resize(RoundUp(data_->size(), alignment), 0); in Pad()
|
/art/dex2oat/linker/arm/ |
D | relative_patcher_arm_base.cc | 77 bool MakeSpaceBefore(const ThunkData& next_thunk, size_t alignment) { in MakeSpaceBefore() argument 80 DCHECK_ALIGNED_PARAM(MaxNextOffset(), alignment); in MakeSpaceBefore() 81 DCHECK_ALIGNED_PARAM(next_thunk.MaxNextOffset(), alignment); in MakeSpaceBefore() 83 max_next_offset_ = RoundDown(next_thunk.MaxNextOffset() - CodeSize(), alignment); in MakeSpaceBefore() 465 size_t alignment = GetInstructionSetAlignment(instruction_set_); in AddUnreservedThunk() local 468 data->MakeSpaceBefore(*unreserved_thunks_[index + 1u], alignment); in AddUnreservedThunk() 472 while (index != 0u && unreserved_thunks_[index - 1u]->MakeSpaceBefore(*data, alignment)) { in AddUnreservedThunk()
|
/art/runtime/jit/ |
D | jit_memory_region.cc | 360 size_t alignment = GetInstructionSetAlignment(kRuntimeISA); in CommitCode() local 372 DCHECK_ALIGNED_PARAM(reinterpret_cast<uintptr_t>(w_memory + header_size), alignment); in CommitCode() 470 size_t alignment = GetInstructionSetAlignment(kRuntimeISA); in AllocateCode() local 471 void* result = mspace_memalign(exec_mspace_, alignment, size); in AllocateCode()
|
D | jit_code_cache.cc | 376 size_t alignment = GetInstructionSetAlignment(kRuntimeISA); in FromCodeToAllocation() local 377 return reinterpret_cast<uintptr_t>(code) - RoundUp(sizeof(OatQuickMethodHeader), alignment); in FromCodeToAllocation()
|
/art/runtime/arch/arm64/ |
D | asm_support_arm64.S | 43 .macro ENTRY_ALIGNED name, alignment argument 52 .balign \alignment, 0xFF
|
/art/dexlayout/ |
D | dex_writer.h | 130 ALWAYS_INLINE void AlignTo(const size_t alignment) { in AlignTo() argument 131 position_ = RoundUp(position_, alignment); in AlignTo()
|
D | compact_dex_writer.h | 100 ScopedDataSectionItem(Stream* stream, dex_ir::Item* item, size_t alignment, Deduper* deduper);
|
D | compact_dex_writer.cc | 109 size_t alignment, in ScopedDataSectionItem() argument 113 alignment_(alignment), in ScopedDataSectionItem()
|
/art/runtime/interpreter/mterp/ |
D | README.txt | 24 declarations for the segment type and alignment.
|
/art/compiler/optimizing/ |
D | nodes_vector.h | 276 void SetAlignment(Alignment alignment) { alignment_ = alignment; } in SetAlignment() argument
|
D | loop_optimization.cc | 1008 Alignment alignment = ComputeAlignment(i->offset, i->type, i->is_string_char_at); in ShouldVectorize() local 1009 if (alignment.Base() >= desired_alignment) { in ShouldVectorize() 1013 uint32_t offset = alignment.Offset() & (desired_alignment - 1u); in ShouldVectorize()
|
/art/tools/hiddenapi/ |
D | hiddenapi.cc | 789 void InsertPadding(size_t alignment) { in InsertPadding() argument 790 size_t len = RoundUp(offset_, alignment) - offset_; in InsertPadding()
|
/art/libelffile/elf/ |
D | elf_builder.h | 797 off_t AlignFileOffset(size_t alignment) { in AlignFileOffset() argument 798 return stream_.Seek(RoundUp(stream_.Seek(0, kSeekCurrent), alignment), kSeekSet); in AlignFileOffset()
|
/art/compiler/utils/x86/ |
D | assembler_x86.h | 826 void Align(int alignment, int offset);
|