Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 25 of 29) sorted by relevance

12

/art/libartbase/base/
Dlength_prefixed_array.h36 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 …]
Dzip_archive.cc52 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()
Dzip_archive.h63 size_t alignment);
69 bool IsAlignedTo(size_t alignment) const;
Dbit_utils.h216 #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)
Darray_slice.h61 size_t alignment = alignof(T))
63 lpa != nullptr && lpa->size() != 0 ? &lpa->At(0, element_size, alignment) : nullptr,
Dsafe_copy_test.cc81 TEST(SafeCopyTest, alignment) { in TEST() argument
/art/libdexfile/dex/
Dcompact_dex_utils.h29 size_t alignment) { in AlignmentPadVector() argument
30 while (!IsAlignedParam(dest->size(), alignment)) { in AlignmentPadVector()
Ddex_file_verifier.cc227 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/
DDexRandomAccessFile.java298 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/
Dinfo.txt1 Test SIMD vectorization alignment optimizations.
/art/runtime/arch/arm/
Dasm_support_arm.S57 .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/
Dwriter.h160 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/
Drelative_patcher_arm_base.cc77 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/
Djit_memory_region.cc360 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()
Djit_code_cache.cc376 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/
Dasm_support_arm64.S43 .macro ENTRY_ALIGNED name, alignment argument
52 .balign \alignment, 0xFF
/art/dexlayout/
Ddex_writer.h130 ALWAYS_INLINE void AlignTo(const size_t alignment) { in AlignTo() argument
131 position_ = RoundUp(position_, alignment); in AlignTo()
Dcompact_dex_writer.h100 ScopedDataSectionItem(Stream* stream, dex_ir::Item* item, size_t alignment, Deduper* deduper);
Dcompact_dex_writer.cc109 size_t alignment, in ScopedDataSectionItem() argument
113 alignment_(alignment), in ScopedDataSectionItem()
/art/runtime/interpreter/mterp/
DREADME.txt24 declarations for the segment type and alignment.
/art/compiler/optimizing/
Dnodes_vector.h276 void SetAlignment(Alignment alignment) { alignment_ = alignment; } in SetAlignment() argument
Dloop_optimization.cc1008 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/
Dhiddenapi.cc789 void InsertPadding(size_t alignment) { in InsertPadding() argument
790 size_t len = RoundUp(offset_, alignment) - offset_; in InsertPadding()
/art/libelffile/elf/
Delf_builder.h797 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/
Dassembler_x86.h826 void Align(int alignment, int offset);

12