Home
last modified time | relevance | path

Searched refs:distance (Results 1 – 21 of 21) sorted by relevance

/art/test/557-checker-instruct-simplifier-ror/src/
DMain.java46 public static int rotateIntegerRight(int value, int distance) { in rotateIntegerRight() argument
47 return java.lang.Integer.rotateRight(value, distance); in rotateIntegerRight()
66 public static int rotateIntegerLeft(int value, int distance) { in rotateIntegerLeft() argument
67 return java.lang.Integer.rotateLeft(value, distance); in rotateIntegerLeft()
85 public static long rotateLongRight(long value, int distance) { in rotateLongRight() argument
86 return java.lang.Long.rotateRight(value, distance); in rotateLongRight()
105 public static long rotateLongLeft(long value, int distance) { in rotateLongLeft() argument
106 return java.lang.Long.rotateLeft(value, distance); in rotateLongLeft()
250 public static int ror_int_reg_v_csubv(int value, int distance) { in ror_int_reg_v_csubv() argument
251 return (value >>> distance) | (value << (32 - distance)); in ror_int_reg_v_csubv()
[all …]
/art/test/565-checker-rotate/src-art/
DMain.java39 private static int rotateLeftByte(byte value, int distance) { in rotateLeftByte() argument
40 return Integer.rotateLeft(value, distance); in rotateLeftByte()
59 private static int rotateLeftShort(short value, int distance) { in rotateLeftShort() argument
60 return Integer.rotateLeft(value, distance); in rotateLeftShort()
79 private static int rotateLeftChar(char value, int distance) { in rotateLeftChar() argument
80 return Integer.rotateLeft(value, distance); in rotateLeftChar()
99 private static int rotateLeftInt(int value, int distance) { in rotateLeftInt() argument
100 return Integer.rotateLeft(value, distance); in rotateLeftInt()
119 private static long rotateLeftLong(long value, int distance) { in rotateLeftLong() argument
120 return Long.rotateLeft(value, distance); in rotateLeftLong()
[all …]
/art/test/542-bitfield-rotates/src/
DMain.java53 public static int $noinline$rotate_int_right_reg_v_csubv(int value, int distance) { in $noinline$rotate_int_right_reg_v_csubv() argument
57 return (value >>> distance) | (value << (32 - distance)); in $noinline$rotate_int_right_reg_v_csubv()
76 public static long $noinline$rotate_long_right_reg_v_csubv(long value, int distance) { in $noinline$rotate_long_right_reg_v_csubv() argument
80 return (value >>> distance) | (value << (64 - distance)); in $noinline$rotate_long_right_reg_v_csubv()
99 public static int $noinline$rotate_int_left_reg_csubv_v(int value, int distance) { in $noinline$rotate_int_left_reg_csubv_v() argument
103 return (value >>> (32 - distance)) | (value << distance); in $noinline$rotate_int_left_reg_csubv_v()
122 public static long $noinline$rotate_long_left_reg_csubv_v(long value, int distance) { in $noinline$rotate_long_left_reg_csubv_v() argument
126 return (value >>> (64 - distance)) | (value << distance); in $noinline$rotate_long_left_reg_csubv_v()
145 public static int $noinline$rotate_int_right_reg_v_negv(int value, int distance) { in $noinline$rotate_int_right_reg_v_negv() argument
149 return (value >>> distance) | (value << -distance); in $noinline$rotate_int_right_reg_v_negv()
[all …]
/art/test/411-optimizing-arith/src/
DShiftsTest.java238 static int $opt$ShlInt(int value, int distance) { in $opt$ShlInt() argument
239 return value << distance; in $opt$ShlInt()
242 static long $opt$ShlLong(long value, int distance) { in $opt$ShlLong() argument
243 return value << distance; in $opt$ShlLong()
246 static int $opt$ShrInt(int value, int distance) { in $opt$ShrInt() argument
247 return value >> distance; in $opt$ShrInt()
250 static long $opt$ShrLong(long value, int distance) { in $opt$ShrLong() argument
251 return value >> distance; in $opt$ShrLong()
254 static int $opt$UShrInt(int value, int distance) { in $opt$UShrInt() argument
255 return value >>> distance; in $opt$UShrInt()
[all …]
/art/test/950-redefine-intrinsic/src/
DRedefinedLongIntrinsics.java47 public static long rotateLeft(long i, int distance) { in rotateLeft() argument
52 public static long rotateRight(long i, int distance) { in rotateRight() argument
/art/compiler/utils/
Dintrusive_forward_list_test.cc64 ASSERT_EQ(std::distance((expected).begin(), (expected).end()), \
65 std::distance((value).begin(), (value).end())); \
296 std::advance(ref_it, std::distance(ref.begin(), ref.end()) - 1); in InsertAfter2()
297 std::advance(ifl_it, std::distance(ifl.begin(), ifl.end()) - 1); in InsertAfter2()
316 CHECK_EQ(std::distance(ref.begin(), ref.end()), 5); in EraseAfter1()
325 CHECK_EQ(std::distance(ref.begin(), ref.end()), 4); in EraseAfter1()
338 CHECK_EQ(std::distance(ref.begin(), ref.end()), 3); in EraseAfter1()
345 CHECK_EQ(std::distance(ref.begin(), ref.end()), 2); in EraseAfter1()
354 CHECK_EQ(std::distance(ref.begin(), ref.end()), 1); in EraseAfter1()
361 CHECK_EQ(std::distance(ref.begin(), ref.end()), 0); in EraseAfter1()
[all …]
Dintrusive_forward_list.h355 size_t n = std::distance(begin(), end()); in sort()
381 return std::distance(begin(), end()); in SizeSlow()
/art/test/565-checker-rotate/smali/
DMain2.smali65 # private static int rotateLeftBoolean(boolean value, int distance) {
66 # return Integer.rotateLeft(value ? 1 : 0, distance);
72 .param p1, "distance" # I
137 # private static int rotateRightBoolean(boolean value, int distance) {
138 # return Integer.rotateRight(value ? 1 : 0, distance);
144 .param p1, "distance" # I
/art/libartbase/base/
Dbit_utils.h350 inline static T Rot(T opnd, int distance) { in Rot() argument
352 int unsigned_right_shift = left ? (-distance & mask) : (distance & mask); in Rot()
353 int signed_left_shift = left ? (distance & mask) : (-distance & mask); in Rot()
Dstl_util.h95 return std::distance(container.begin(), it); in IndexOfElement()
/art/compiler/optimizing/
Dnodes.h5266 HInstruction* distance,
5268 : HBinaryOperation(kShl, result_type, value, distance, SideEffects::None(), dex_pc) { in HBinaryOperation() argument
5270 DCHECK_EQ(DataType::Type::kInt32, DataType::Kind(distance->GetType())); in HBinaryOperation()
5274 static T Compute(T value, int32_t distance, int32_t max_shift_distance) { in Compute() argument
5275 return value << (distance & max_shift_distance); in Compute()
5278 HConstant* Evaluate(HIntConstant* value, HIntConstant* distance) const override { in Evaluate() argument
5280 Compute(value->GetValue(), distance->GetValue(), kMaxIntShiftDistance), GetDexPc()); in Evaluate()
5282 HConstant* Evaluate(HLongConstant* value, HIntConstant* distance) const override { in Evaluate() argument
5284 Compute(value->GetValue(), distance->GetValue(), kMaxLongShiftDistance), GetDexPc()); in Evaluate()
5287 HLongConstant* distance ATTRIBUTE_UNUSED) const override { in Evaluate()
[all …]
Dstack_map_stream.cc239 uint32_t distance = stack_maps_.size() - dex_register_timestamp_[i]; in CreateDexRegisterMap() local
240 if (previous_dex_registers_[i] != reg || distance > kMaxDexRegisterMapSearchDistance) { in CreateDexRegisterMap()
Dbounds_check_elimination.cc1368 uint32_t distance = static_cast<uint32_t>(max_c) - static_cast<uint32_t>(min_c); in AddComparesWithDeoptimization() local
1371 distance <= kMaxLengthForAddingDeoptimize) { // reject likely/certain deopt in AddComparesWithDeoptimization()
1475 uint32_t distance = static_cast<uint32_t>(max_c) - static_cast<uint32_t>(min_c); in TransformLoopForDynamicBCE() local
1477 distance <= kMaxLengthForAddingDeoptimize) { // reject likely/certain deopt in TransformLoopForDynamicBCE()
Dinstruction_simplifier.cc2146 HInstruction* distance = invoke->InputAt(1); in SimplifyRotate() local
2152 distance = new (GetGraph()->GetAllocator()) HNeg(DataType::Type::kInt32, distance); in SimplifyRotate()
2153 invoke->GetBlock()->InsertInstructionBefore(distance, invoke); in SimplifyRotate()
2155 HRor* ror = new (GetGraph()->GetAllocator()) HRor(type, value, distance); in SimplifyRotate()
Dloop_optimization.cc1495 int64_t distance = 0; in VectorizeUse() local
1497 IsInt64AndGet(opb, /*out*/ &distance)) { in VectorizeUse()
1500 if (0 <= distance && distance < max_distance) { in VectorizeUse()
Dssa_liveness_analysis.h1088 << std::distance(uses_.before_begin(), insert_pos); in AddBackEdgeUses()
/art/compiler/utils/mips64/
Dassembler_mips64.cc2682 int64_t distance = static_cast<int64_t>(target) - location; in GetOffsetSizeNeeded() local
2685 distance += (distance >= 0) ? kMaxBranchSize : -kMaxBranchSize; in GetOffsetSizeNeeded()
2686 if (IsInt<kOffset16>(distance)) in GetOffsetSizeNeeded()
2688 else if (IsInt<kOffset18>(distance)) in GetOffsetSizeNeeded()
2690 else if (IsInt<kOffset21>(distance)) in GetOffsetSizeNeeded()
2692 else if (IsInt<kOffset23>(distance)) in GetOffsetSizeNeeded()
2694 else if (IsInt<kOffset28>(distance)) in GetOffsetSizeNeeded()
2766 int64_t distance = static_cast<int64_t>(target_) - location_; in PromoteIfNeeded() local
2767 distance = (distance >= 0) ? distance : -distance; in PromoteIfNeeded()
2768 if (distance >= max_short_distance) { in PromoteIfNeeded()
/art/cmdline/
Dtoken_range.h157 return std::distance(begin_, end_); in Size()
/art/compiler/utils/mips/
Dassembler_mips.cc3326 int64_t distance = static_cast<int64_t>(target) - location; in GetOffsetSizeNeeded() local
3329 distance += (distance >= 0) ? kMaxBranchSize : -kMaxBranchSize; in GetOffsetSizeNeeded()
3330 if (IsInt<kOffset16>(distance)) in GetOffsetSizeNeeded()
3332 else if (IsInt<kOffset18>(distance)) in GetOffsetSizeNeeded()
3334 else if (IsInt<kOffset21>(distance)) in GetOffsetSizeNeeded()
3336 else if (IsInt<kOffset23>(distance)) in GetOffsetSizeNeeded()
3338 else if (IsInt<kOffset28>(distance)) in GetOffsetSizeNeeded()
3450 int64_t distance = static_cast<int64_t>(target_) - location; in PromoteIfNeeded() local
3451 distance = (distance >= 0) ? distance : -distance; in PromoteIfNeeded()
3452 if (distance >= max_short_distance) { in PromoteIfNeeded()
/art/test/083-compiler-regressions/src/
DMain.java886 static int rotateLeft(int i, int distance) { in rotateLeft() argument
887 return ((i << distance) | (i >>> (-distance))); in rotateLeft()
/art/test/dexdump/
Dcheckers.txt921 …p forward, and kings move and jump forward and backward (but not over a distance). Please note tha…