Searched refs:delta (Results 1 - 25 of 41) sorted by relevance

12

/art/compiler/optimizing/
H A Dcode_generator_utils.cc71 uint64_t delta; local
86 delta = abs_d - remainder2;
87 } while (quotient1 < delta || (quotient1 == delta && remainder1 == 0));
/art/runtime/
H A Dbarrier.cc46 void Barrier::Increment(Thread* self, int delta) { argument
48 SetCountLocked(self, count_ + delta);
62 bool Barrier::Increment(Thread* self, int delta, uint32_t timeout_ms) { argument
64 SetCountLocked(self, count_ + delta);
H A Dstride_iterator.h58 StrideIterator operator+(ssize_t delta) const {
60 temp += delta;
64 StrideIterator& operator+=(ssize_t delta) { argument
65 ptr_ += static_cast<ssize_t>(stride_) * delta;
H A Dimage.cc78 void ImageHeader::RelocateImage(off_t delta) { argument
79 CHECK_ALIGNED(delta, kPageSize) << " patch delta must be page aligned";
80 oat_file_begin_ += delta;
81 oat_data_begin_ += delta;
82 oat_data_end_ += delta;
83 oat_file_end_ += delta;
84 patch_delta_ += delta;
85 RelocateImageObjects(delta);
86 RelocateImageMethods(delta);
89 RelocateImageObjects(off_t delta) argument
94 RelocateImageMethods(off_t delta) argument
[all...]
H A Dbarrier.h53 // Increment the count by delta, wait on condition if count is non zero.
54 void Increment(Thread* self, int delta) REQUIRES(!lock_);
56 // Increment the count by delta, wait on condition if count is non zero, with a timeout. Returns
58 bool Increment(Thread* self, int delta, uint32_t timeout_ms) REQUIRES(!lock_);
H A Dtype_lookup_table.cc131 const uint32_t delta = (next_pos >= pos) ? (next_pos - pos) : (next_pos + Size() - pos); local
132 entries_[pos].next_pos_delta = delta;
H A Dimage.h232 void RelocateImage(off_t delta);
233 void RelocateImageMethods(off_t delta);
234 void RelocateImageObjects(off_t delta);
331 // The total delta that this image has been patched.
H A Doat.cc134 return "Image patch delta not page-aligned.";
351 void OatHeader::RelocateOat(off_t delta) { argument
353 CHECK_ALIGNED(delta, kPageSize);
354 image_patch_delta_ += delta;
356 image_file_location_oat_data_begin_ += delta;
H A Doat.h95 void RelocateOat(off_t delta);
H A Dthread_list.cc1214 for (int delta = debug_suspend_all_count_; delta > 0; delta--) {
1217 for (int delta = suspend_all_count_ - debug_suspend_all_count_; delta > 0; delta--) {
/art/tools/dexfuzz/src/dexfuzz/program/mutators/
H A DBranchShifter.java120 int delta = 0;
125 delta = 0;
126 while (delta == 0) {
127 delta = (rng.nextInt(5) - 2);
130 newTargetIdx = oldTargetInsnIdx + delta;
H A DSwitchBranchShifter.java121 int delta = 0;
126 delta = 0;
127 while (delta == 0) {
128 delta = (rng.nextInt(5) - 2);
131 newTargetIdx = oldTargetInsnIdx + delta;
H A DTryBlockShifter.java142 int delta = 0;
147 delta = 0;
148 while (delta == 0) {
149 delta = (rng.nextInt(5) - 2);
152 newInsnIdx = oldInsnIdx + delta;
H A DInstructionSwapper.java100 int delta = rng.nextInt(5) - 1;
102 if (delta == 0) {
106 swapWithInsnIdx = swapInsnIdx + delta;
/art/compiler/debug/dwarf/
H A Ddebug_frame_opcode_writer.h50 int delta = FactorCodeOffset(absolute_pc - current_pc_); local
51 if (delta != 0) {
52 if (delta <= 0x3F) {
53 this->PushUint8(DW_CFA_advance_loc | delta);
54 } else if (delta <= UINT8_MAX) {
56 this->PushUint8(delta);
57 } else if (delta <= UINT16_MAX) {
59 this->PushUint16(delta);
62 this->PushUint32(delta);
78 void ALWAYS_INLINE AdjustCFAOffset(int delta) { argument
[all...]
H A Ddebug_line_opcode_writer.h51 uint64_t delta = FactorCodeOffset(absolute_address - current_address_); local
52 if (delta <= INT32_MAX) {
54 this->PushUleb128(static_cast<int>(delta));
63 int delta = absolute_line - current_line_; local
64 if (delta != 0) {
66 this->PushSleb128(delta);
/art/test/021-string2/src/junit/framework/
H A DAssert.java94 * Asserts that two doubles are equal concerning a delta. If they are not
96 * value is infinity then the delta value is ignored.
98 static public void assertEquals(String message, double expected, double actual, double delta) { argument
101 if (!(Math.abs(expected-actual) <= delta))
105 * Asserts that two doubles are equal concerning a delta. If the expected
106 * value is infinity then the delta value is ignored.
108 static public void assertEquals(double expected, double actual, double delta) { argument
109 assertEquals(null, expected, actual, delta);
112 * Asserts that two floats are equal concerning a positive delta. If they
114 * expected value is infinity then the delta valu
116 assertEquals(String message, float expected, float actual, float delta) argument
126 assertEquals(float expected, float actual, float delta) argument
[all...]
/art/test/082-inline-execute/src/junit/framework/
H A DAssert.java94 * Asserts that two doubles are equal concerning a delta. If they are not
96 * value is infinity then the delta value is ignored.
98 static public void assertEquals(String message, double expected, double actual, double delta) { argument
101 if (!(Math.abs(expected-actual) <= delta))
105 * Asserts that two doubles are equal concerning a delta. If the expected
106 * value is infinity then the delta value is ignored.
108 static public void assertEquals(double expected, double actual, double delta) { argument
109 assertEquals(null, expected, actual, delta);
112 * Asserts that two floats are equal concerning a positive delta. If they
114 * expected value is infinity then the delta valu
116 assertEquals(String message, float expected, float actual, float delta) argument
126 assertEquals(float expected, float actual, float delta) argument
[all...]
/art/patchoat/
H A Dpatchoat.h47 static bool Patch(File* oat_in, off_t delta, File* oat_out, TimingLogger* timings,
52 static bool Patch(const std::string& art_location, off_t delta, File* art_out, InstructionSet isa,
57 off_t delta,
67 PatchOat(ElfFile* oat_file, off_t delta, TimingLogger* timings) argument
68 : oat_file_(oat_file), image_(nullptr), bitmap_(nullptr), heap_(nullptr), delta_(delta),
71 MemMap* heap, off_t delta, TimingLogger* timings)
73 delta_(delta), isa_(isa), space_map_(nullptr), timings_(timings) {}
75 gc::accounting::ContinuousSpaceBitmap* bitmap, MemMap* heap, off_t delta,
78 delta_(delta), isa_(isa), space_map_(map), timings_(timings) {}
70 PatchOat(InstructionSet isa, MemMap* image, gc::accounting::ContinuousSpaceBitmap* bitmap, MemMap* heap, off_t delta, TimingLogger* timings) argument
74 PatchOat(InstructionSet isa, ElfFile* oat_file, MemMap* image, gc::accounting::ContinuousSpaceBitmap* bitmap, MemMap* heap, off_t delta, std::map<gc::space::ImageSpace*, std::unique_ptr<MemMap>>* map, TimingLogger* timings) argument
H A Dpatchoat.cc105 // This function takes an elf file and reads the current patch delta value
107 static bool ReadOatPatchDelta(const ElfFile* elf_file, off_t* delta, std::string* error_msg) { argument
117 *delta = oat_header->GetImagePatchDelta();
154 off_t delta,
286 delta,
755 bool PatchOat::Patch(File* input_oat, off_t delta, File* output_oat, TimingLogger* timings, argument
786 PatchOat p(elf.release(), delta, timings);
940 UsageError(" --base-offset-delta=<delta>: Specify the amount to change the old base-offset by.");
960 static bool ReadBaseDelta(const char* name, off_t* delta, st argument
153 Patch(const std::string& image_location, off_t delta, const std::string& output_directory, InstructionSet isa, TimingLogger* timings) argument
[all...]
/art/compiler/
H A Delf_writer_test.cc112 constexpr int32_t delta = 0x11235813; local
129 *reinterpret_cast<UnalignedAddress*>(expected.data() + location) += delta;
135 oat_patches.data(), oat_patches.data() + oat_patches.size(), delta,
/art/runtime/gc/accounting/
H A Dcard_table.cc84 int delta = kCardDirty - biased_byte; local
85 offset = delta + (delta < 0 ? 0x100 : 0);
H A Dcard_table_test.cc109 const size_t delta = std::min(static_cast<size_t>(HeapLimit() - HeapBegin()), local
113 for (uint8_t* cstart = HeapBegin(); cstart < HeapBegin() + delta; cstart += CardTable::kCardSize) {
116 for (uint8_t* cend = HeapLimit() - delta; cend < HeapLimit(); cend += CardTable::kCardSize) {
/art/test/004-checker-UnsafeTest18/src/
H A DMain.java78 private static int add32(Object o, long offset, int delta) { argument
79 return unsafe.getAndAddInt(o, offset, delta);
85 private static long add64(Object o, long offset, long delta) { argument
86 return unsafe.getAndAddLong(o, offset, delta);
/art/runtime/gc/collector/
H A Dmark_sweep.cc1034 uintptr_t delta = (end - begin) / n; local
1035 delta = RoundUp(delta, KB);
1036 if (delta < 16 * KB) delta = end - begin;
1037 begin += delta;
1378 const size_t delta = std::min(static_cast<size_t>(end - it), chunk_size); local
1379 thread_pool->AddTask(self, new MarkStackTask<false>(thread_pool, this, delta, it));
1380 it += delta;

Completed in 437 milliseconds

12