Searched defs:distance (Results 1 - 13 of 13) sorted by relevance

/art/test/950-redefine-intrinsic/src/
H A DRedefinedLongIntrinsics.java47 public static long rotateLeft(long i, int distance) { argument
52 public static long rotateRight(long i, int distance) { argument
/art/test/565-checker-rotate/src/
H A DMain.java65 private static int rotateLeftBoolean(boolean value, int distance) { argument
66 return Integer.rotateLeft(value ? 1 : 0, distance);
86 private static int rotateLeftByte(byte value, int distance) { argument
87 return Integer.rotateLeft(value, distance);
107 private static int rotateLeftShort(short value, int distance) { argument
108 return Integer.rotateLeft(value, distance);
128 private static int rotateLeftChar(char value, int distance) { argument
129 return Integer.rotateLeft(value, distance);
149 private static int rotateLeftInt(int value, int distance) { argument
150 return Integer.rotateLeft(value, distance);
170 rotateLeftLong(long value, int distance) argument
218 rotateRightBoolean(boolean value, int distance) argument
238 rotateRightByte(byte value, int distance) argument
258 rotateRightShort(short value, int distance) argument
278 rotateRightChar(char value, int distance) argument
298 rotateRightInt(int value, int distance) argument
318 rotateRightLong(long value, int distance) argument
340 rotateLeftIntWithByteDistance(int value, byte distance) argument
360 rotateRightIntWithByteDistance(int value, byte distance) argument
[all...]
/art/test/557-checker-instruct-simplifier-ror/src/
H A DMain.java46 public static int rotateIntegerRight(int value, int distance) { argument
47 return java.lang.Integer.rotateRight(value, distance);
66 public static int rotateIntegerLeft(int value, int distance) { argument
67 return java.lang.Integer.rotateLeft(value, distance);
85 public static long rotateLongRight(long value, int distance) { argument
86 return java.lang.Long.rotateRight(value, distance);
105 public static long rotateLongLeft(long value, int distance) { argument
106 return java.lang.Long.rotateLeft(value, distance);
109 // (i >>> #distance) | (i << #(reg_bits - distance))
250 ror_int_reg_v_csubv(int value, int distance) argument
344 ror_long_reg_v_csubv(long value, int distance) argument
350 ror_long_reg_v_csubv_0(long value, int distance) argument
384 rol_int_reg_csubv_v(int value, int distance) argument
448 rol_long_reg_csubv_v(long value, int distance) argument
454 rol_long_reg_csubv_v_0(long value, int distance) argument
479 ror_int_reg_v_negv(int value, int distance) argument
503 ror_int_reg_v_negv_env(int value, int distance) argument
529 ror_long_reg_v_negv(long value, int distance) argument
554 rol_int_reg_negv_v(int value, int distance) argument
579 rol_long_reg_negv_v(long value, int distance) argument
605 rol_long_reg_v_negv_add(long value, int distance) argument
631 rol_long_reg_v_negv_xor(long value, int distance) argument
[all...]
/art/libartbase/base/
H A Dbit_utils.h349 inline static T Rot(T opnd, int distance) { argument
351 int unsigned_right_shift = left ? (-distance & mask) : (distance & mask);
352 int signed_left_shift = left ? (distance & mask) : (-distance & mask);
/art/test/431-optimizing-arith-shifts/src/
H A DMain.java238 static int $opt$ShlInt(int value, int distance) { argument
239 return value << distance;
242 static long $opt$ShlLong(long value, int distance) { argument
243 return value << distance;
246 static int $opt$ShrInt(int value, int distance) { argument
247 return value >> distance;
250 static long $opt$ShrLong(long value, int distance) { argument
251 return value >> distance;
254 static int $opt$UShrInt(int value, int distance) { argument
255 return value >>> distance;
258 $opt$UShrLong(long value, int distance) argument
[all...]
/art/test/542-bitfield-rotates/src/
H A DMain.java53 public static int $noinline$rotate_int_right_reg_v_csubv(int value, int distance) { argument
57 return (value >>> distance) | (value << (32 - distance));
76 public static long $noinline$rotate_long_right_reg_v_csubv(long value, int distance) { argument
80 return (value >>> distance) | (value << (64 - distance));
99 public static int $noinline$rotate_int_left_reg_csubv_v(int value, int distance) { argument
103 return (value >>> (32 - distance)) | (value << distance);
122 public static long $noinline$rotate_long_left_reg_csubv_v(long value, int distance) { argument
145 $noinline$rotate_int_right_reg_v_negv(int value, int distance) argument
168 $noinline$rotate_long_right_reg_v_negv(long value, int distance) argument
191 $noinline$rotate_int_left_reg_negv_v(int value, int distance) argument
214 $noinline$rotate_long_left_reg_negv_v(long value, int distance) argument
[all...]
/art/compiler/optimizing/
H A Dbounds_check_elimination.cc1361 // OOB. Note that we reject cases where the distance min_c:max_c range gets close to
1366 uint32_t distance = static_cast<uint32_t>(max_c) - static_cast<uint32_t>(min_c); local
1369 distance <= kMaxLengthForAddingDeoptimize) { // reject likely/certain deopt
1473 uint32_t distance = static_cast<uint32_t>(max_c) - static_cast<uint32_t>(min_c); local
1475 distance <= kMaxLengthForAddingDeoptimize) { // reject likely/certain deopt
H A Dloop_optimization.cc1288 int64_t distance = 0; local
1290 IsInt64AndGet(opb, /*out*/ &distance)) {
1291 // Restrict shift distance to packed data type width.
1293 if (0 <= distance && distance < max_distance) {
H A Dinstruction_simplifier.cc363 // where cst exceeds maximum distance with the equivalent
513 // And the shift distance being negated is the distance being shifted the other way.
2121 HInstruction* distance = invoke->InputAt(1); local
2124 // Unconditionally set the type of the negated distance to `int`,
2126 // value for their distance input.
2127 distance = new (GetGraph()->GetAllocator()) HNeg(DataType::Type::kInt32, distance);
2128 invoke->GetBlock()->InsertInstructionBefore(distance, invoke);
2130 HRor* ror = new (GetGraph()->GetAllocator()) HRor(type, value, distance);
[all...]
H A Dnodes.h84 // The maximum (meaningful) distance (31) that can be used in an integer shift/rotate operation.
86 // The maximum (meaningful) distance (63) that can be used in a long shift/rotate operation.
5049 HInstruction* distance,
5051 : HBinaryOperation(kShl, result_type, value, distance, SideEffects::None(), dex_pc) {
5053 DCHECK_EQ(DataType::Type::kInt32, DataType::Kind(distance->GetType()));
5057 static T Compute(T value, int32_t distance, int32_t max_shift_distance) { argument
5058 return value << (distance & max_shift_distance);
5061 HConstant* Evaluate(HIntConstant* value, HIntConstant* distance) const OVERRIDE {
5063 Compute(value->GetValue(), distance->GetValue(), kMaxIntShiftDistance), GetDexPc());
5065 HConstant* Evaluate(HLongConstant* value, HIntConstant* distance) cons
5047 HShl(DataType::Type result_type, HInstruction* value, HInstruction* distance, uint32_t dex_pc = kNoDexPc) argument
5093 HShr(DataType::Type result_type, HInstruction* value, HInstruction* distance, uint32_t dex_pc = kNoDexPc) argument
5103 Compute(T value, int32_t distance, int32_t max_shift_distance) argument
5139 HUShr(DataType::Type result_type, HInstruction* value, HInstruction* distance, uint32_t dex_pc = kNoDexPc) argument
5149 Compute(T value, int32_t distance, int32_t max_shift_distance) argument
5301 HRor(DataType::Type result_type, HInstruction* value, HInstruction* distance) argument
5308 Compute(T value, int32_t distance, int32_t max_shift_value) argument
[all...]
/art/test/083-compiler-regressions/src/
H A DMain.java886 static int rotateLeft(int i, int distance) { argument
887 return ((i << distance) | (i >>> (-distance)));
/art/compiler/utils/mips/
H A Dassembler_mips.cc3306 int64_t distance = static_cast<int64_t>(target) - location;
3308 // bump up the distance by a value larger than the max byte size of a composite branch.
3309 distance += (distance >= 0) ? kMaxBranchSize : -kMaxBranchSize;
3310 if (IsInt<kOffset16>(distance))
3312 else if (IsInt<kOffset18>(distance))
3314 else if (IsInt<kOffset21>(distance))
3316 else if (IsInt<kOffset23>(distance))
3318 else if (IsInt<kOffset28>(distance))
3419 // to hold the distance betwee
3430 int64_t distance = static_cast<int64_t>(target_) - location; local
[all...]
/art/compiler/utils/mips64/
H A Dassembler_mips64.cc2662 int64_t distance = static_cast<int64_t>(target) - location;
2664 // bump up the distance by a value larger than the max byte size of a composite branch.
2665 distance += (distance >= 0) ? kMaxBranchSize : -kMaxBranchSize;
2666 if (IsInt<kOffset16>(distance))
2668 else if (IsInt<kOffset18>(distance))
2670 else if (IsInt<kOffset21>(distance))
2672 else if (IsInt<kOffset23>(distance))
2674 else if (IsInt<kOffset28>(distance))
2735 // to hold the distance betwee
2746 int64_t distance = static_cast<int64_t>(target_) - location_; local
[all...]

Completed in 334 milliseconds