Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 45) sorted by relevance

12

/art/test/082-inline-execute/src/
DMain.java334 Assert.assertEquals(Math.min(0, 0), 0);
335 Assert.assertEquals(Math.min(1, 0), 0);
336 Assert.assertEquals(Math.min(0, 1), 0);
337 Assert.assertEquals(Math.min(0, Integer.MAX_VALUE), 0);
338 Assert.assertEquals(Math.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
339 Assert.assertEquals(Math.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
352 Assert.assertEquals(Math.min(0L, 0L), 0L);
353 Assert.assertEquals(Math.min(1L, 0L), 0L);
354 Assert.assertEquals(Math.min(0L, 1L), 0L);
355 Assert.assertEquals(Math.min(0L, Long.MAX_VALUE), 0L);
[all …]
/art/runtime/entrypoints/
Dmath_entrypoints_test.cc29 EXPECT_EQ(std::numeric_limits<int64_t>::min(), art_d2l(-1.85e19)); in TEST_F()
41 EXPECT_EQ(std::numeric_limits<int64_t>::min(), art_f2l(-1.85e19)); in TEST_F()
53 EXPECT_EQ(std::numeric_limits<int32_t>::min(), art_d2i(-4.3e9)); in TEST_F()
65 EXPECT_EQ(std::numeric_limits<int32_t>::min(), art_f2i(-4.3e9)); in TEST_F()
/art/runtime/base/
Dstringpiece.cc29 int ret = std::min(length_ - pos, n); in copy()
45 int r = memcmp(ptr_, x.ptr_, std::min(length_, x.length_)); in compare()
64 if (s.length_ == 0) return std::min(ulen, pos); in rfind()
66 const char* last = ptr_ + std::min(ulen - s.length_, pos) + s.length_; in rfind()
73 for (int i = std::min(pos, static_cast<size_type>(length_ - 1)); in rfind()
Dhex_dump.cc71 size_t count = std::min(byte_count, 16 - gap); in Dump()
Dhistogram-inl.h102 min_value_added_ = std::min(val, min_value_added_); in BucketiseValue()
123 max_value_added_ = std::numeric_limits<Value>::min(); in Reset()
Dstringpiece.h193 std::min(x.size(), y.size()));
Dbit_vector.cc223 for (; idx < std::min(not_in_size, union_with_size); idx++) { in UnionIfNotIn()
/art/runtime/arch/
Dmemcmp16_test.cc101 size_t min = count1 < count2 ? count1 : count2; in CheckSeparate() local
105 for (size_t i = 0; i < min; ++i) { in CheckSeparate()
109 for (size_t i = min; i < count1; ++i) { in CheckSeparate()
112 for (size_t i = min; i < count2; ++i) { in CheckSeparate()
/art/test/053-wait-some/src/
DMain.java65 long min = delay - epsilon; in doit() local
68 if (elapsed < min) { in doit()
/art/compiler/jni/quick/x86_64/
Dcalling_convention_x86_64.cc191 … - std::min(8U, itr_float_and_doubles_) // Float arguments passed through Xmm0..Xmm7 in CurrentParamStackOffset()
192 - std::min(6U, itr_args_ - itr_float_and_doubles_); // Integer arguments passed through GPR in CurrentParamStackOffset()
206 - std::min(8U, static_cast<unsigned int>(NumFloatOrDoubleArgs())) in NumberOfOutgoingStackArgs()
207 … - std::min(6U, static_cast<unsigned int>(NumArgs() - NumFloatOrDoubleArgs())); in NumberOfOutgoingStackArgs()
/art/compiler/jni/quick/arm64/
Dcalling_convention_arm64.cc245 - std::min(8u, itr_float_and_doubles_) in CurrentParamStackOffset()
246 - std::min(8u, (itr_args_ - itr_float_and_doubles_)); in CurrentParamStackOffset()
257 std::min(8u, static_cast<unsigned int>(NumFloatOrDoubleArgs())) - in NumberOfOutgoingStackArgs()
258 std::min(8u, static_cast<unsigned int>((all_args - NumFloatOrDoubleArgs()))); in NumberOfOutgoingStackArgs()
/art/runtime/base/unix_file/
Dmapped_file.cc119 std::min(byte_count, file_size_ - offset)); in Read()
156 std::min(byte_count, file_size_ - offset)); in Write()
Dstring_file.cc46 const int64_t available_bytes = std::min(byte_count, GetLength() - offset); in Read()
/art/runtime/interpreter/
Dinterpreter_common.h208 const int32_t kMinInt = std::numeric_limits<int32_t>::min(); in DoIntDivide()
226 const int32_t kMinInt = std::numeric_limits<int32_t>::min(); in DoIntRemainder()
244 const int64_t kMinLong = std::numeric_limits<int64_t>::min(); in DoLongDivide()
262 const int64_t kMinLong = std::numeric_limits<int64_t>::min(); in DoLongRemainder()
/art/test/082-inline-execute/src/junit/framework/
DComparisonFailure.java34 int end= Math.min(fExpected.length(), fActual.length()); in getMessage()
/art/test/021-string2/src/junit/framework/
DComparisonFailure.java34 int end= Math.min(fExpected.length(), fActual.length()); in getMessage()
/art/runtime/
Dparsed_options.h124 bool ParseDouble(const std::string& option, char after_char, double min, double max,
Ddex_file.cc730 int32_t min = 0; in FindTryItem() local
733 while (min <= max) { in FindTryItem()
734 int32_t mid = min + ((max - min) / 2); in FindTryItem()
743 min = mid + 1; in FindTryItem()
Dparsed_options.cc899 double min, double max, double* parsed_value) { in ParseDouble() argument
911 sane_val = iss.eof() && (value >= min) && (value <= max); in ParseDouble()
915 sane_val = *end == '\0' && value >= min && value <= max; in ParseDouble()
/art/test/003-omnibus-opcodes/src/
DFloatMath.java308 Main.assertTrue(approxEqual(Math.min(ff, -5.0f), -5.0f, 0.001f)); in jlmTests()
313 Main.assertTrue(approxEqual(Math.min(dd, -5.0), -5.0, 0.001)); in jlmTests()
DIntMath.java566 Main.assertTrue(Math.min(ii, -5) == -5); in jlmTests()
571 Main.assertTrue(Math.min(ll, -5L) == -5L); in jlmTests()
/art/runtime/gc/accounting/
Dcard_table_test.cc106 const size_t delta = std::min(static_cast<size_t>(HeapLimit() - HeapBegin()), 8U * kCardSize); in TEST_F()
/art/compiler/utils/
Dassembler.cc85 size_t new_capacity = std::min(old_capacity * 2, old_capacity + 1 * MB); in ExtendCapacity()
/art/runtime/verifier/
Dreg_type.cc482 if (val >= std::numeric_limits<jshort>::min() && in Dump()
496 if (val >= std::numeric_limits<jshort>::min() && in Dump()
509 if (val >= std::numeric_limits<jshort>::min() && in Dump()
522 if (val >= std::numeric_limits<jshort>::min() && in Dump()
/art/runtime/gc/collector/
Dmark_sweep.cc743 const size_t mark_stack_delta = std::min(CardScanTask::kMaxSize / 2, in ScanGrayObjects()
765 size_t card_increment = std::min(card_delta, addr_remaining); in ScanGrayObjects()
768 size_t mark_stack_increment = std::min(mark_stack_delta, mark_stack_remaining); in ScanGrayObjects()
1169 const size_t chunk_size = std::min(mark_stack_->Size() / thread_count + 1, in ProcessMarkStackParallel()
1174 const size_t delta = std::min(static_cast<size_t>(end - it), chunk_size); in ProcessMarkStackParallel()

12