Home
last modified time | relevance | path

Searched refs:diff (Results 1 – 25 of 47) sorted by relevance

12

/art/test/660-checker-sad-char/src/
DMain.java41 int diff = x - y; in sad2() local
42 if (diff < 0) diff = -diff; in sad2()
43 return diff; in sad2()
54 int diff = x - y; in sad3() local
55 return diff >= 0 ? diff : -diff; in sad3()
66 int diff = x - y; in sad3Alt() local
67 return 0 <= diff ? diff : -diff; in sad3Alt()
91 long diff = x - y; in sadL2() local
92 if (diff < 0L) diff = -diff; in sadL2()
93 return diff; in sadL2()
[all …]
/art/test/660-checker-sad-short/src/
DMain.java41 int diff = x - y; in sad2() local
42 if (diff < 0) diff = -diff; in sad2()
43 return diff; in sad2()
54 int diff = x - y; in sad3() local
55 return diff >= 0 ? diff : -diff; in sad3()
66 int diff = x - y; in sad3Alt() local
67 return 0 <= diff ? diff : -diff; in sad3Alt()
91 long diff = x - y; in sadL2() local
92 if (diff < 0L) diff = -diff; in sadL2()
93 return diff; in sadL2()
[all …]
/art/test/660-checker-sad-byte/src/
DMain.java41 int diff = x - y; in sad2() local
42 if (diff < 0) diff = -diff; in sad2()
43 return diff; in sad2()
54 int diff = x - y; in sad3() local
55 return diff >= 0 ? diff : -diff; in sad3()
66 int diff = x - y; in sad3Alt() local
67 return 0 <= diff ? diff : -diff; in sad3Alt()
91 long diff = x - y; in sadL2() local
92 if (diff < 0L) diff = -diff; in sadL2()
93 return diff; in sadL2()
[all …]
/art/test/660-checker-sad-int/src/
DMain.java46 int diff = x - y; in sad2() local
47 if (diff < 0) diff = -diff; in sad2()
48 return diff; in sad2()
59 int diff = x - y; in sad3() local
60 return diff >= 0 ? diff : -diff; in sad3()
71 int diff = x - y; in sad3Alt() local
72 return 0 <= diff ? diff : -diff; in sad3Alt()
96 long diff = x - y; in sadL2() local
97 if (diff < 0L) diff = -diff; in sadL2()
98 return diff; in sadL2()
[all …]
/art/test/660-checker-sad-long/src/
DMain.java46 long diff = x - y; in sad2() local
47 if (diff < 0) diff = -diff; in sad2()
48 return diff; in sad2()
59 long diff = x - y; in sad3() local
60 return diff >= 0 ? diff : -diff; in sad3()
71 long diff = x - y; in sad3Alt() local
72 return 0 <= diff ? diff : -diff; in sad3Alt()
/art/dex2oat/linker/x86/
Drelative_patcher_x86_test.cc100 uint32_t diff = kTrampolineOffset - (result.second + kCallCode.size()); in TEST_F() local
103 static_cast<uint8_t>(diff), in TEST_F()
104 static_cast<uint8_t>(diff >> 8), in TEST_F()
105 static_cast<uint8_t>(diff >> 16), in TEST_F()
106 static_cast<uint8_t>(diff >> 24) in TEST_F()
131 uint32_t diff = bss_begin_ + kStringEntryOffset - (result.second + anchor_offset); in TEST_F() local
136 static_cast<uint8_t>(diff), in TEST_F()
137 static_cast<uint8_t>(diff >> 8), in TEST_F()
138 static_cast<uint8_t>(diff >> 16), in TEST_F()
139 static_cast<uint8_t>(diff >> 24) in TEST_F()
[all …]
Drelative_patcher_x86.cc53 uint32_t diff = target_offset - anchor_offset; in PatchPcRelativeReference() local
54 (*code)[literal_offset + 0u] = static_cast<uint8_t>(diff >> 0); in PatchPcRelativeReference()
55 (*code)[literal_offset + 1u] = static_cast<uint8_t>(diff >> 8); in PatchPcRelativeReference()
56 (*code)[literal_offset + 2u] = static_cast<uint8_t>(diff >> 16); in PatchPcRelativeReference()
57 (*code)[literal_offset + 3u] = static_cast<uint8_t>(diff >> 24); in PatchPcRelativeReference()
/art/dex2oat/linker/x86_64/
Drelative_patcher_x86_64_test.cc120 uint32_t diff = kTrampolineOffset - (result.second + kCallCode.size()); in TEST_F() local
123 static_cast<uint8_t>(diff), in TEST_F()
124 static_cast<uint8_t>(diff >> 8), in TEST_F()
125 static_cast<uint8_t>(diff >> 16), in TEST_F()
126 static_cast<uint8_t>(diff >> 24) in TEST_F()
144 uint32_t diff = bss_begin_ + kStringEntryOffset - (result.second + kDexCacheLoadCode.size()); in TEST_F() local
147 static_cast<uint8_t>(diff), in TEST_F()
148 static_cast<uint8_t>(diff >> 8), in TEST_F()
149 static_cast<uint8_t>(diff >> 16), in TEST_F()
150 static_cast<uint8_t>(diff >> 24) in TEST_F()
[all …]
/art/dex2oat/linker/mips64/
Drelative_patcher_mips64_test.cc68 uint32_t diff = target_offset - (result.second + kAnchorOffset); in CheckPcRelativePatch() local
69 diff += (diff & 0x8000) << 1; // Account for sign extension in daddiu/lwu. in CheckPcRelativePatch()
72 static_cast<uint8_t>(diff >> 16), static_cast<uint8_t>(diff >> 24), 0x5E, 0xEE, in CheckPcRelativePatch()
73 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x66, in CheckPcRelativePatch()
74 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x9E, in CheckPcRelativePatch()
Drelative_patcher_mips64.cc69 uint32_t diff = target_offset - anchor_offset; in PatchPcRelativeReference() local
74 diff += (diff & 0x8000) << 1; // Account for sign extension in "instr reg(s), offset_low". in PatchPcRelativeReference()
78 (*code)[literal_offset + 0] = static_cast<uint8_t>(diff >> 16); in PatchPcRelativeReference()
79 (*code)[literal_offset + 1] = static_cast<uint8_t>(diff >> 24); in PatchPcRelativeReference()
82 (*code)[literal_offset + 0] = static_cast<uint8_t>(diff >> 0); in PatchPcRelativeReference()
83 (*code)[literal_offset + 1] = static_cast<uint8_t>(diff >> 8); in PatchPcRelativeReference()
/art/runtime/arch/arm64/
Dmemcmp16_arm64.S39 #define diff x6 macro
66 eor diff, data1, data2 /* Non-zero if differences found. */
67 csinv endloop, diff, xzr, ne /* Last Dword or differences. */
88 rev diff, diff
90 clz diff, diff
92 bfi diff, xzr, #0, #4
96 lsr data1, data1, diff
97 lsr data2, data2, diff
/art/dex2oat/linker/mips/
Drelative_patcher_mips32r6_test.cc66 uint32_t diff = target_offset - (result.second + kAnchorOffset); in CheckPcRelativePatch() local
67 diff += (diff & 0x8000) << 1; // Account for sign extension in addiu/lw. in CheckPcRelativePatch()
70 static_cast<uint8_t>(diff >> 16), static_cast<uint8_t>(diff >> 24), 0x5E, 0xEE, in CheckPcRelativePatch()
71 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x26, in CheckPcRelativePatch()
72 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x8E, in CheckPcRelativePatch()
Drelative_patcher_mips_test.cc69 uint32_t diff = target_offset - (result.second + kAnchorOffset); in CheckPcRelativePatch() local
70 diff += (diff & 0x8000) << 1; // Account for sign extension in addiu/lw. in CheckPcRelativePatch()
74 static_cast<uint8_t>(diff >> 16), static_cast<uint8_t>(diff >> 24), 0x12, 0x3C, in CheckPcRelativePatch()
76 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x26, in CheckPcRelativePatch()
77 static_cast<uint8_t>(diff), static_cast<uint8_t>(diff >> 8), 0x52, 0x8E, in CheckPcRelativePatch()
Drelative_patcher_mips.cc75 uint32_t diff = target_offset - anchor_offset; in PatchPcRelativeReference() local
76 diff += (diff & 0x8000) << 1; // Account for sign extension in "instr reg(s), offset_low". in PatchPcRelativeReference()
80 (*code)[literal_offset + 0] = static_cast<uint8_t>(diff >> 16); in PatchPcRelativeReference()
81 (*code)[literal_offset + 1] = static_cast<uint8_t>(diff >> 24); in PatchPcRelativeReference()
84 (*code)[literal_offset + 0] = static_cast<uint8_t>(diff >> 0); in PatchPcRelativeReference()
85 (*code)[literal_offset + 1] = static_cast<uint8_t>(diff >> 8); in PatchPcRelativeReference()
/art/dex2oat/linker/
Dindex_bss_mapping_encoder.h48 uint32_t diff = index - entry_.GetIndex(index_bits_); in TryMerge() local
49 if (diff > 32u - index_bits_) { in TryMerge()
53 if ((mask & ~(static_cast<uint32_t>(-1) << diff)) != 0u) { in TryMerge()
58 mask = ((mask << index_bits_) >> diff) | (static_cast<uint32_t>(1u) << (32 - diff)); in TryMerge()
/art/runtime/
Dindex_bss_mapping.cc29 uint32_t diff = GetIndex(index_bits) - index; in GetBssOffset() local
30 if (diff == 0u) { in GetBssOffset()
34 if (diff > mask_bits) { in GetBssOffset()
39 uint32_t mask_from_index = index_and_mask >> (32u - diff); in GetBssOffset()
Dentrypoints_order_test.cc37 #define EXPECT_OFFSET_DIFF(first_type, first_field, second_type, second_field, diff, name) \ argument
39 - OFFSETOF_MEMBER(first_type, first_field) == (diff), name)
42 #define EXPECT_OFFSET_DIFFNP(type, first_field, second_field, diff) \ argument
43 EXPECT_OFFSET_DIFF(type, first_field, type, second_field, diff, \
48 #define EXPECT_OFFSET_DIFFP(type, prefix, first_field, second_field, diff) \ argument
49 EXPECT_OFFSET_DIFF(type, prefix . first_field, type, prefix . second_field, diff, /* NOLINT */ \
54 #define EXPECT_OFFSET_DIFF_GT(first_type, first_field, second_type, second_field, diff, name) \ argument
56 - OFFSETOF_MEMBER(first_type, first_field) >= (diff), name)
59 #define EXPECT_OFFSET_DIFF_GT3(type, first_field, second_field, diff, name) \ argument
60 EXPECT_OFFSET_DIFF_GT(type, first_field, type, second_field, diff, name)
/art/dex2oat/linker/arm/
Drelative_patcher_thumb2_test.cc130 uint32_t diff = target_offset - bne_offset - kPcAdjustment; in BneWWithOffset() local
131 DCHECK_ALIGNED(diff, 2u); in BneWWithOffset()
132 if ((diff >> 20) != 0 && (diff >> 20) != 0xfffu) { in BneWWithOffset()
133 LOG(ERROR) << "Target out of range: " << diff; in BneWWithOffset()
136 return kBneWPlus0 | ((diff >> 1) & 0x7ffu) // imm11 in BneWWithOffset()
137 | (((diff >> 12) & 0x3fu) << 16) // imm6 in BneWWithOffset()
138 | (((diff >> 18) & 1) << 13) // J1 in BneWWithOffset()
139 | (((diff >> 19) & 1) << 11) // J2 in BneWWithOffset()
140 | (((diff >> 20) & 1) << 26); // S in BneWWithOffset()
382 uint32_t diff = target_offset - pc_base_offset; in CheckPcRelativePatch() local
[all …]
/art/test/1339-dead-reference-safe/
Dcheck20 diff --ignore-matching-lines="DeadReferenceSafe count:" -q $1 $2
/art/test/etc/
Ddefault-check17 diff --strip-trailing-cr -q "$1" "$2" >/dev/null
/art/test/115-native-bridge/
Dcheck20 diff --strip-trailing-cr -q "$1" - >/dev/null
/art/test/118-noimage-dex2oat/
Dcheck20 diff --strip-trailing-cr -q "$1" "$2.tmp" >/dev/null
/art/test/139-register-natives/
Dcheck20 diff --strip-trailing-cr -q "$1" "$2.tmp" >/dev/null
/art/test/143-string-value/
Dcheck20 diff --strip-trailing-cr -q "$1" "$2.tmp" >/dev/null
/art/test/059-finalizer-throw/
Dcheck20 diff --strip-trailing-cr -q "$1" "$2.tmp" >/dev/null

12