Home
last modified time | relevance | path

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

123

/art/runtime/interpreter/
Dsafe_math_test.cc29 std::numeric_limits<int32_t>::min()); in TEST()
31 std::numeric_limits<int64_t>::min()); in TEST()
39 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::min() + 1, -1), in TEST()
40 std::numeric_limits<int32_t>::min()); in TEST()
41 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::min() + 1, -1), in TEST()
42 std::numeric_limits<int64_t>::min()); in TEST()
63 EXPECT_EQ(SafeSub(std::numeric_limits<int32_t>::min(), 1), in TEST()
65 EXPECT_EQ(SafeSub(std::numeric_limits<int64_t>::min(), 1), in TEST()
74 EXPECT_EQ(SafeSub(std::numeric_limits<int32_t>::min() + 1, 1), in TEST()
75 std::numeric_limits<int32_t>::min()); in TEST()
[all …]
Dinterpreter_common.h215 constexpr int32_t kMinInt = std::numeric_limits<int32_t>::min(); in DoIntDivide()
233 constexpr int32_t kMinInt = std::numeric_limits<int32_t>::min(); in DoIntRemainder()
251 const int64_t kMinLong = std::numeric_limits<int64_t>::min(); in DoLongDivide()
269 const int64_t kMinLong = std::numeric_limits<int64_t>::min(); in DoLongRemainder()
/art/test/082-inline-execute/src/
DMain.java472 Math.min(1, 0);
473 Assert.assertEquals(Math.min(0, 0), 0);
474 Assert.assertEquals(Math.min(1, 0), 0);
475 Assert.assertEquals(Math.min(0, 1), 0);
476 Assert.assertEquals(Math.min(0, Integer.MAX_VALUE), 0);
477 Assert.assertEquals(Math.min(Integer.MIN_VALUE, 0), Integer.MIN_VALUE);
478 Assert.assertEquals(Math.min(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MIN_VALUE);
492 Math.min(1L, 0L);
493 Assert.assertEquals(Math.min(0L, 0L), 0L);
494 Assert.assertEquals(Math.min(1L, 0L), 0L);
[all …]
/art/runtime/base/
Dbit_utils_test.cc151 static_cast<int64_t>(std::numeric_limits<int32_t>::min()) - 1;
166 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
168 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
181 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::min())); in TEST()
183 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::min())); in TEST()
187 EXPECT_FALSE(IsInt<int64_t>(63, std::numeric_limits<int64_t>::min())); in TEST()
189 EXPECT_TRUE(IsInt<int64_t>(64, std::numeric_limits<int64_t>::min())); in TEST()
201 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#9");
203 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::min()), "TestIsInt32#11");
214 static_assert(!IsInt<31, int64_t>(std::numeric_limits<int32_t>::min()), "TestIsInt64#9");
[all …]
Dstringpiece.cc38 size_type ret = std::min(length_ - pos, n); in copy()
53 int r = memcmp(ptr_, x.ptr_, std::min(length_, x.length_)); in compare()
72 if (s.length_ == 0) return std::min(ulen, pos); in rfind()
74 const char* last = ptr_ + std::min(ulen - s.length_, pos) + s.length_; in rfind()
81 for (int i = std::min(pos, static_cast<size_type>(length_ - 1)); in rfind()
Dcasts.h94 (static_cast<intmax_t>(std::numeric_limits<Dest>::min()) <= in dchecked_integral_cast()
95 static_cast<intmax_t>(std::numeric_limits<Source>::min()) || in dchecked_integral_cast()
96 source >= static_cast<Source>(std::numeric_limits<Dest>::min())) && in dchecked_integral_cast()
Dhex_dump.cc71 size_t count = std::min(byte_count, 16 - gap); in Dump()
Dhistogram-inl.h106 min_value_added_ = std::min(val, min_value_added_); in BucketiseValue()
127 max_value_added_ = std::numeric_limits<Value>::min(); in Reset()
/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/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/compiler/jni/quick/x86_64/
Dcalling_convention_x86_64.cc193 … - std::min(8U, itr_float_and_doubles_) // Float arguments passed through Xmm0..Xmm7 in CurrentParamStackOffset()
194 - std::min(6U, itr_args_ - itr_float_and_doubles_); // Integer arguments passed through GPR in CurrentParamStackOffset()
208 - std::min(8U, static_cast<unsigned int>(NumFloatOrDoubleArgs())) in NumberOfOutgoingStackArgs()
209 … - std::min(6U, static_cast<unsigned int>(NumArgs() - NumFloatOrDoubleArgs())); in NumberOfOutgoingStackArgs()
/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/arm64/
Dcalling_convention_arm64.cc256 - std::min(8u, itr_float_and_doubles_) in CurrentParamStackOffset()
257 - std::min(8u, (itr_args_ - itr_float_and_doubles_)); in CurrentParamStackOffset()
268 std::min(8u, static_cast<unsigned int>(NumFloatOrDoubleArgs())) - in NumberOfOutgoingStackArgs()
269 std::min(8u, static_cast<unsigned int>((all_args - NumFloatOrDoubleArgs()))); in NumberOfOutgoingStackArgs()
/art/cmdline/
Dcmdline_parse_result.h73 const T& min, in OutOfRange()
77 ", min: " + art::detail::ToStringAny(min) + in OutOfRange()
Dcmdline_types.h298 result < std::numeric_limits<int>::min()
718 T min,
723 if (value < min || value > max) {
724 CmdlineParseResult<T> out_of_range = CmdlineParseResult<T>::OutOfRange(value, min, max);
/art/test/082-inline-execute/src/junit/framework/
DComparisonCompactor.java50 int end= Math.min(fExpected.length(), fActual.length()); in findCommonPrefix()
72 int end= Math.min(fExpected.length() - fSuffix + 1 + fContextLength, fExpected.length()); in computeCommonSuffix()
/art/test/021-string2/src/junit/framework/
DComparisonCompactor.java50 int end= Math.min(fExpected.length(), fActual.length()); in findCommonPrefix()
72 int end= Math.min(fExpected.length() - fSuffix + 1 + fContextLength, fExpected.length()); in computeCommonSuffix()
/art/runtime/verifier/
Dreg_type_cache-inl.h47 const ConstantType& result = FromCat1Const(std::numeric_limits<jbyte>::min(), false); in ByteConstant()
60 const ConstantType& result = FromCat1Const(std::numeric_limits<jshort>::min(), false); in ShortConstant()
Dreg_type.cc401 if (val >= std::numeric_limits<jshort>::min() && in Dump()
415 if (val >= std::numeric_limits<jshort>::min() && in Dump()
428 if (val >= std::numeric_limits<jshort>::min() && in Dump()
441 if (val >= std::numeric_limits<jshort>::min() && in Dump()
/art/tools/dexfuzz/src/dexfuzz/rawdex/
DTypeList.java58 int checkSize = Math.min(size, other.size); in comesBefore()
/art/cmdline/detail/
Dcmdline_parse_argument_detail.h214 [](size_t min, const TokenRange& cur) { in CompleteArgument()
215 return std::min(min, cur.Size()); in CompleteArgument()
/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()
/art/runtime/gc/accounting/
Dcard_table.cc126 memset(start_card, 0, std::min(round_start, end_card) - start_card); in ClearCardRange()
Dcard_table_test.cc109 const size_t delta = std::min(static_cast<size_t>(HeapLimit() - HeapBegin()), in TEST_F()
/art/test/454-get-vreg/
Dget_vreg_jni.cc91 CHECK_EQ(static_cast<int64_t>(value), std::numeric_limits<int64_t>::min()); in VisitFrame()

123