Home
last modified time | relevance | path

Searched refs:lhs (Results 1 – 25 of 83) sorted by relevance

1234

/art/libartbase/base/
Dsdk_version.h41 inline bool IsSdkVersionSetAndMoreThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndMoreThan() argument
42 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs > static_cast<uint32_t>(rhs); in IsSdkVersionSetAndMoreThan()
45 inline bool IsSdkVersionSetAndAtLeast(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtLeast() argument
46 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs >= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtLeast()
49 inline bool IsSdkVersionSetAndAtMost(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndAtMost() argument
50 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs <= static_cast<uint32_t>(rhs); in IsSdkVersionSetAndAtMost()
53 inline bool IsSdkVersionSetAndLessThan(uint32_t lhs, SdkVersion rhs) { in IsSdkVersionSetAndLessThan() argument
54 return lhs != static_cast<uint32_t>(SdkVersion::kUnset) && lhs < static_cast<uint32_t>(rhs); in IsSdkVersionSetAndLessThan()
Dstride_iterator.h118 friend bool operator<(const StrideIterator<U>& lhs, const StrideIterator<U>& rhs);
128 bool operator<(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
129 DCHECK_EQ(lhs.stride_, rhs.stride_);
130 return lhs.ptr_ < rhs.ptr_;
134 bool operator>(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
135 return rhs < lhs;
139 bool operator<=(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
140 return !(rhs < lhs);
144 bool operator>=(const StrideIterator<T>& lhs, const StrideIterator<T>& rhs) {
145 return !(lhs < rhs);
Ddchecked_vector.h196 void swap(dchecked_vector<T, Alloc>& lhs, dchecked_vector<T, Alloc>& rhs) { in swap() argument
197 lhs.swap(rhs); in swap()
202 bool operator==(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
203 return lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin());
206 bool operator!=(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
207 return !(lhs == rhs);
210 bool operator<(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
211 return std::lexicographical_compare(lhs.begin(), lhs.end(), rhs.begin(), rhs.end());
214 bool operator<=(const dchecked_vector<T, Alloc>& lhs, const dchecked_vector<T, Alloc>& rhs) {
215 return !(rhs < lhs);
[all …]
Dintrusive_forward_list.h110 operator==(const IntrusiveForwardListIterator<OtherT1, OtherTraits>& lhs,
116 const IntrusiveForwardListIterator<T, HookTraits>& lhs,
118 return lhs.hook_ == rhs.hook_;
123 const IntrusiveForwardListIterator<T, HookTraits>& lhs,
125 return !(lhs == rhs);
401 void swap(IntrusiveForwardList<T, HookTraits>& lhs, IntrusiveForwardList<T, HookTraits>& rhs) { in swap() argument
402 lhs.swap(rhs); in swap()
406 bool operator==(const IntrusiveForwardList<T, HookTraits>& lhs,
408 auto lit = lhs.begin();
410 for (; lit != lhs.end() && rit != rhs.end(); ++lit, ++rit) {
[all …]
Dbit_utils_iterator.h63 friend bool operator==(const BitIteratorBase<U, I>& lhs, const BitIteratorBase<U, I>& rhs);
67 bool operator==(const BitIteratorBase<T, Iter>& lhs, const BitIteratorBase<T, Iter>& rhs) {
68 return lhs.bits_ == rhs.bits_;
72 bool operator!=(const BitIteratorBase<T, Iter>& lhs, const BitIteratorBase<T, Iter>& rhs) {
73 return !(lhs == rhs);
Darray_ref.h197 bool operator==(const ArrayRef<T>& lhs, const ArrayRef<T>& rhs) {
198 return lhs.size() == rhs.size() && std::equal(lhs.begin(), lhs.end(), rhs.begin());
202 bool operator!=(const ArrayRef<T>& lhs, const ArrayRef<T>& rhs) {
203 return !(lhs == rhs);
/art/compiler/debug/
Dsrc_map_elem.h30 inline bool operator<(const SrcMapElem& lhs, const SrcMapElem& rhs) {
31 if (lhs.from_ != rhs.from_) {
32 return lhs.from_ < rhs.from_;
34 return lhs.to_ < rhs.to_;
37 inline bool operator==(const SrcMapElem& lhs, const SrcMapElem& rhs) {
38 return lhs.from_ == rhs.from_ && lhs.to_ == rhs.to_;
/art/libdexfile/dex/
Ddex_instruction_iterator.h87 static ALWAYS_INLINE inline bool operator==(const DexInstructionIteratorBase& lhs,
89 DCHECK_EQ(lhs.Instructions(), rhs.Instructions()) << "Comparing different code items.";
90 return lhs.DexPc() == rhs.DexPc();
93 static inline bool operator!=(const DexInstructionIteratorBase& lhs,
95 return !(lhs == rhs);
98 static inline bool operator<(const DexInstructionIteratorBase& lhs,
100 DCHECK_EQ(lhs.Instructions(), rhs.Instructions()) << "Comparing different code items.";
101 return lhs.DexPc() < rhs.DexPc();
104 static inline bool operator>(const DexInstructionIteratorBase& lhs,
106 return rhs < lhs;
[all …]
Dtest_dex_file_builder.h291 bool operator()(const FieldKey& lhs, const FieldKey& rhs) const { in operator()
292 if (lhs.class_descriptor != rhs.class_descriptor) { in operator()
293 return lhs.class_descriptor < rhs.class_descriptor; in operator()
295 if (lhs.name != rhs.name) { in operator()
296 return lhs.name < rhs.name; in operator()
298 return lhs.type < rhs.type; in operator()
308 bool operator()(const ProtoKey& lhs, const ProtoKey& rhs) const { in operator()
309 if (lhs.return_type != rhs.return_type) { in operator()
310 return lhs.return_type < rhs.return_type; in operator()
312 size_t min_args = std::min(lhs.args.size(), rhs.args.size()); in operator()
[all …]
/art/runtime/verifier/
Dreg_type-inl.h70 inline bool RegType::AssignableFrom(const RegType& lhs, in AssignableFrom() argument
74 if (lhs.Equals(rhs)) { in AssignableFrom()
77 switch (lhs.GetAssignmentType()) { in AssignableFrom()
102 } else if (lhs.IsUninitializedTypes() || rhs.IsUninitializedTypes()) { in AssignableFrom()
106 } else if (lhs.IsJavaLangObject()) { in AssignableFrom()
108 } else if (!strict && !lhs.IsUnresolvedTypes() && lhs.GetClass()->IsInterface()) { in AssignableFrom()
111 } else if (lhs.IsJavaLangObjectArray()) { in AssignableFrom()
113 } else if (lhs.HasClass() && rhs.HasClass()) { in AssignableFrom()
115 bool result = lhs.GetClass()->IsAssignableFrom(rhs.GetClass()); in AssignableFrom()
120 verifier->GetDexFile(), lhs.GetClass(), rhs.GetClass(), strict, result); in AssignableFrom()
[all …]
/art/test/083-compiler-regressions/src/
DZeroTests.java42 private static long longDiv(long lhs, long rhs) { in longDiv() argument
43 return lhs / rhs; in longDiv()
46 private static long longMod(long lhs, long rhs) { in longMod() argument
47 return lhs % rhs; in longMod()
/art/compiler/linker/
Dlinker_patch.h287 friend bool operator==(const LinkerPatch& lhs, const LinkerPatch& rhs);
288 friend bool operator<(const LinkerPatch& lhs, const LinkerPatch& rhs);
292 inline bool operator==(const LinkerPatch& lhs, const LinkerPatch& rhs) {
293 return lhs.literal_offset_ == rhs.literal_offset_ &&
294 lhs.patch_type_ == rhs.patch_type_ &&
295 lhs.target_dex_file_ == rhs.target_dex_file_ &&
296 lhs.cmp1_ == rhs.cmp1_ &&
297 lhs.cmp2_ == rhs.cmp2_;
300 inline bool operator<(const LinkerPatch& lhs, const LinkerPatch& rhs) {
301 return (lhs.literal_offset_ != rhs.literal_offset_) ? lhs.literal_offset_ < rhs.literal_offset_
[all …]
/art/runtime/
Dobj_ptr-inl.h140 operator==(ObjPtr<MirrorType1> lhs, ObjPtr<MirrorType2> rhs) {
141 return lhs.Ptr() == rhs.Ptr();
147 operator==(const MirrorType1* lhs, ObjPtr<MirrorType2> rhs) {
148 return lhs == rhs.Ptr();
154 operator==(ObjPtr<MirrorType1> lhs, const MirrorType2* rhs) {
155 return lhs.Ptr() == rhs;
161 operator!=(ObjPtr<MirrorType1> lhs, ObjPtr<MirrorType2> rhs) {
162 return !(lhs == rhs);
168 operator!=(const MirrorType1* lhs, ObjPtr<MirrorType2> rhs) {
169 return !(lhs == rhs);
[all …]
/art/test/442-checker-constant-folding/src/
DMain.java710 int lhs = 1; in ShlIntLong() local
712 return lhs << rhs; in ShlIntLong()
729 long lhs = 3; in ShlLongInt() local
731 return lhs << rhs; in ShlLongInt()
754 int lhs = 7; in ShrIntLong() local
756 return lhs >> rhs; in ShrIntLong()
773 long lhs = 9; in ShrLongInt() local
775 return lhs >> rhs; in ShrLongInt()
798 int lhs = -7; in UShrIntLong() local
800 return lhs >>> rhs; in UShrIntLong()
[all …]
/art/compiler/optimizing/
Dcode_generator_vector_arm_vixl.cc276 vixl32::DRegister lhs = DRegisterFrom(locations->InAt(0)); in VisitVecAdd() local
283 __ Vadd(I8, dst, lhs, rhs); in VisitVecAdd()
288 __ Vadd(I16, dst, lhs, rhs); in VisitVecAdd()
292 __ Vadd(I32, dst, lhs, rhs); in VisitVecAdd()
306 vixl32::DRegister lhs = DRegisterFrom(locations->InAt(0)); in VisitVecSaturationAdd() local
312 __ Vqadd(DataTypeValue::U8, dst, lhs, rhs); in VisitVecSaturationAdd()
316 __ Vqadd(DataTypeValue::S8, dst, lhs, rhs); in VisitVecSaturationAdd()
320 __ Vqadd(DataTypeValue::U16, dst, lhs, rhs); in VisitVecSaturationAdd()
324 __ Vqadd(DataTypeValue::S16, dst, lhs, rhs); in VisitVecSaturationAdd()
338 vixl32::DRegister lhs = DRegisterFrom(locations->InAt(0)); in VisitVecHalvingAdd() local
[all …]
Dcode_generator_vector_arm64_sve.cc411 VRegister lhs = VRegisterFrom(locations->InAt(0)); in VisitVecAdd() local
418 __ Add(dst.V16B(), lhs.V16B(), rhs.V16B()); in VisitVecAdd()
423 __ Add(dst.V8H(), lhs.V8H(), rhs.V8H()); in VisitVecAdd()
427 __ Add(dst.V4S(), lhs.V4S(), rhs.V4S()); in VisitVecAdd()
431 __ Add(dst.V2D(), lhs.V2D(), rhs.V2D()); in VisitVecAdd()
435 __ Fadd(dst.V4S(), lhs.V4S(), rhs.V4S()); in VisitVecAdd()
439 __ Fadd(dst.V2D(), lhs.V2D(), rhs.V2D()); in VisitVecAdd()
453 VRegister lhs = VRegisterFrom(locations->InAt(0)); in VisitVecSaturationAdd() local
459 __ Uqadd(dst.V16B(), lhs.V16B(), rhs.V16B()); in VisitVecSaturationAdd()
463 __ Sqadd(dst.V16B(), lhs.V16B(), rhs.V16B()); in VisitVecSaturationAdd()
[all …]
Dcode_generator_vector_arm64_neon.cc411 VRegister lhs = VRegisterFrom(locations->InAt(0)); in VisitVecAdd() local
418 __ Add(dst.V16B(), lhs.V16B(), rhs.V16B()); in VisitVecAdd()
423 __ Add(dst.V8H(), lhs.V8H(), rhs.V8H()); in VisitVecAdd()
427 __ Add(dst.V4S(), lhs.V4S(), rhs.V4S()); in VisitVecAdd()
431 __ Add(dst.V2D(), lhs.V2D(), rhs.V2D()); in VisitVecAdd()
435 __ Fadd(dst.V4S(), lhs.V4S(), rhs.V4S()); in VisitVecAdd()
439 __ Fadd(dst.V2D(), lhs.V2D(), rhs.V2D()); in VisitVecAdd()
453 VRegister lhs = VRegisterFrom(locations->InAt(0)); in VisitVecSaturationAdd() local
459 __ Uqadd(dst.V16B(), lhs.V16B(), rhs.V16B()); in VisitVecSaturationAdd()
463 __ Sqadd(dst.V16B(), lhs.V16B(), rhs.V16B()); in VisitVecSaturationAdd()
[all …]
/art/compiler/utils/
Dswap_space.h82 bool operator()(const FreeBySizeEntry& lhs, const FreeBySizeEntry& rhs) const { in operator()
83 if (lhs.size != rhs.size) { in operator()
84 return lhs.size < rhs.size; in operator()
86 return lhs.free_by_start_entry->Start() < rhs.free_by_start_entry->Start(); in operator()
142 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
221 friend bool operator==(const SwapAllocator<U>& lhs, const SwapAllocator<U>& rhs);
225 inline bool operator==(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
226 return lhs.swap_space_ == rhs.swap_space_;
230 inline bool operator!=(const SwapAllocator<T>& lhs, const SwapAllocator<T>& rhs) {
231 return !(lhs == rhs);
Ddedupe_set-inl.h160 operator()(const HashedKey<StoreKey>& lhs, const HashedKey<StoreKey>& rhs) const {
161 DCHECK(lhs.Key() != nullptr);
164 return lhs.Key() == rhs.Key();
168 bool operator()(const HashedKey<LeftT>& lhs, const HashedKey<RightT>& rhs) const {
169 DCHECK(lhs.Key() != nullptr);
171 return lhs.Hash() == rhs.Hash() &&
172 lhs.Key()->size() == rhs.Key()->size() &&
173 std::equal(lhs.Key()->begin(), lhs.Key()->end(), rhs.Key()->begin());
/art/test/004-SignalTest/
Dsignaltest.cc102 bool compare_sigaction(const struct sigaction* lhs, const struct sigaction* rhs) { in compare_sigaction() argument
106 if (lhs->sa_restorer != rhs->sa_restorer) { in compare_sigaction()
110 return memcmp(&lhs->sa_mask, &rhs->sa_mask, sizeof(lhs->sa_mask)) == 0 && in compare_sigaction()
111 lhs->sa_sigaction == rhs->sa_sigaction && in compare_sigaction()
112 lhs->sa_flags == rhs->sa_flags; in compare_sigaction()
/art/dex2oat/linker/arm/
Drelative_patcher_arm_base.h76 bool operator()(const ThunkKey& lhs, const ThunkKey& rhs) const { in operator()
77 if (lhs.GetType() != rhs.GetType()) { in operator()
78 return lhs.GetType() < rhs.GetType(); in operator()
80 if (lhs.GetCustomValue1() != rhs.GetCustomValue1()) { in operator()
81 return lhs.GetCustomValue1() < rhs.GetCustomValue1(); in operator()
83 return lhs.GetCustomValue2() < rhs.GetCustomValue2(); in operator()
/art/compiler/driver/
Dcompiled_method_storage_test.cc80 CompiledMethod* lhs = compiled_methods[i]; in TEST() local
86 ASSERT_EQ(same_code, lhs->GetQuickCode().data() == rhs->GetQuickCode().data()) in TEST()
88 ASSERT_EQ(same_vmap_table, lhs->GetVmapTable().data() == rhs->GetVmapTable().data()) in TEST()
90 ASSERT_EQ(same_cfi_info, lhs->GetCFIInfo().data() == rhs->GetCFIInfo().data()) in TEST()
92 ASSERT_EQ(same_patches, lhs->GetPatches().data() == rhs->GetPatches().data()) in TEST()
/art/openjdkjvmti/
Djvmti_allocator.h76 friend bool operator==(const JvmtiAllocator<U>& lhs, const JvmtiAllocator<U>& rhs);
160 friend bool operator==(const JvmtiAllocator<U>& lhs, const JvmtiAllocator<U>& rhs);
164 inline bool operator==(const JvmtiAllocator<T>& lhs, const JvmtiAllocator<T>& rhs) {
165 return lhs.env_ == rhs.env_;
169 inline bool operator!=(const JvmtiAllocator<T>& lhs, const JvmtiAllocator<T>& rhs) {
170 return !(lhs == rhs);
/art/runtime/mirror/
Dstring.cc285 ObjPtr<String> lhs = this; in CompareTo() local
286 if (lhs == rhs) { in CompareTo()
289 int32_t lhs_count = lhs->GetLength(); in CompareTo()
293 if (lhs->IsCompressed() && rhs->IsCompressed()) { in CompareTo()
294 const uint8_t* lhs_chars = lhs->GetValueCompressed(); in CompareTo()
302 } else if (lhs->IsCompressed() || rhs->IsCompressed()) { in CompareTo()
304 lhs->IsCompressed() ? lhs->GetValueCompressed() : rhs->GetValueCompressed(); in CompareTo()
305 const uint16_t* uncompressed_chars = lhs->IsCompressed() ? rhs->GetValue() : lhs->GetValue(); in CompareTo()
310 return lhs->IsCompressed() ? char_diff : -char_diff; in CompareTo()
314 const uint16_t* lhs_chars = lhs->GetValue(); in CompareTo()
/art/test/021-string2/src/
DMain.java323 String lhs = strings[i]; in testCompareToAndEquals() local
326 int result = $noinline$compareTo(lhs, rhs); in testCompareToAndEquals()
330 expected = lhs.length() - rhs.length(); in testCompareToAndEquals()
341 expected = lhs.length() - rhs.length(); in testCompareToAndEquals()
345 expected = lhs.charAt(min_ij_index) - rhs.charAt(min_ij_index); in testCompareToAndEquals()
352 expected = lhs.charAt(0) - rhs.charAt(0); in testCompareToAndEquals()
368 expected = lhs.length() - rhs.length(); in testCompareToAndEquals()
373 Assert.assertEquals("0123456789abcdef".charAt(k), lhs.charAt(k)); in testCompareToAndEquals()
376 expected = lhs.charAt(min_ij_index) - rhs.charAt(min_ij_index); in testCompareToAndEquals()
393 Assert.assertEquals(equalsExpected, $noinline$equals(lhs, rhs)); in testCompareToAndEquals()
[all …]

1234