Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 25 of 30) 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)
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.h73 bool CheckValidOffsetAndSize(uint32_t offset, uint32_t size, size_t alignment, const char* label);
Ddex_file_verifier.cc278 size_t alignment, in CheckValidOffsetAndSize() argument
290 if (alignment != 0 && !IsAlignedParam(offset, alignment)) { in CheckValidOffsetAndSize()
291 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/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()
452 size_t alignment = GetInstructionSetAlignment(instruction_set_); in AddUnreservedThunk() local
455 data->MakeSpaceBefore(*unreserved_thunks_[index + 1u], alignment); in AddUnreservedThunk()
459 while (index != 0u && unreserved_thunks_[index - 1u]->MakeSpaceBefore(*data, alignment)) { in AddUnreservedThunk()
/art/runtime/arch/mips/
Dasm_support_mips.S189 .macro CHECK_ALIGNMENT ba=$sp, tmp=$at, alignment=16
194 andi \tmp, \ba, \alignment-1
Dquick_entrypoints_mips.S129 # 2 words for alignment and bottom word will hold Method*
988 sll $sp, $t0, 4 # so we have to ensure ART 16B alignment ourselves.
1481 # saved registers used in art_quick_aput_obj: a0-a2, t0-t1, t9, ra. 8 words for 16B alignment.
1970 # Add array data offset and alignment.
1977 andi $a3, $a3, 4 # size shift is 3 (for 64 bit alignment).
1986 # Add array data offset and alignment (in branch delay slot).
1996 # Add array data offset and alignment.
2006 # Add array data offset and alignment.
2016 # Add array data offset and alignment.
/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/jit/
Djit_code_cache.cc660 size_t alignment = GetJitCodeAlignment(); in FromCodeToAllocation() local
661 return reinterpret_cast<uintptr_t>(code) - RoundUp(sizeof(OatQuickMethodHeader), alignment); in FromCodeToAllocation()
1005 size_t alignment = GetJitCodeAlignment(); in CommitCodeInternal() local
1007 size_t header_size = RoundUp(sizeof(OatQuickMethodHeader), alignment); in CommitCodeInternal()
2192 size_t alignment = GetJitCodeAlignment(); in AllocateCode() local
2194 mspace_memalign(exec_mspace_, alignment, allocation_size)); in AllocateCode()
2195 size_t header_size = RoundUp(sizeof(OatQuickMethodHeader), alignment); in AllocateCode()
2197 DCHECK_ALIGNED_PARAM(reinterpret_cast<uintptr_t>(result + header_size), alignment); in AllocateCode()
/art/runtime/interpreter/mterp/
DREADME.txt24 declarations for the segment type and alignment.
/art/runtime/arch/mips64/
Dquick_entrypoints_mips64.S1058 daddiu $t3, $a2, 24 # add 8 for ArtMethod* and 16 for stack alignment
1160 daddiu $t3, $a2, 24 # add 8 for ArtMethod* and 16 for stack alignment
1889 # Add array data offset and alignment.
1896 andi $a3, $a3, 4 # size shift is 3 (for 64 bit alignment).
1901 # Add array data offset and alignment.
1907 # Add array data offset and alignment.
1913 # Add array data offset and alignment.
1919 # Add array data offset and alignment.
/art/tools/hiddenapi/
Dhiddenapi.cc789 void InsertPadding(size_t alignment) { in InsertPadding() argument
790 size_t len = RoundUp(offset_, alignment) - offset_; in InsertPadding()
/art/compiler/optimizing/
Dnodes_vector.h276 void SetAlignment(Alignment alignment) { alignment_ = alignment; } in SetAlignment() argument
Dloop_optimization.cc1005 Alignment alignment = ComputeAlignment(i->offset, i->type, i->is_string_char_at); in ShouldVectorize() local
1006 if (alignment.Base() >= desired_alignment) { in ShouldVectorize()
1010 uint32_t offset = alignment.Offset() & (desired_alignment - 1u); in ShouldVectorize()
/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.cc2943 void X86Assembler::Align(int alignment, int offset) { in Align() argument
2944 CHECK(IsPowerOfTwo(alignment)); in Align()
2946 while (((offset + buffer_.GetPosition()) & (alignment-1)) != 0) { in Align()

12