Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 77) sorted by relevance

1234

/art/runtime/interpreter/
Dsafe_math_test.cc28 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max(), 1), in TEST()
30 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max(), 1), in TEST()
34 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max() - 1, 1), in TEST()
35 std::numeric_limits<int32_t>::max()); in TEST()
36 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max() - 1, 1), in TEST()
37 std::numeric_limits<int64_t>::max()); in TEST()
64 std::numeric_limits<int32_t>::max()); in TEST()
66 std::numeric_limits<int64_t>::max()); in TEST()
69 EXPECT_EQ(SafeSub(std::numeric_limits<int32_t>::max() - 1, -1), in TEST()
70 std::numeric_limits<int32_t>::max()); in TEST()
[all …]
/art/test/133-static-invoke-super/src/
DMain.java12 public void testDirect(int max) { in testDirect() argument
13 for (int i = 0; i < max; ++i) { in testDirect()
14 getVarDirect(max); in testDirect()
17 public void testStatic(int max) { in testStatic() argument
18 for (int i = 0; i < max; ++i) { in testStatic()
19 getVar(max); in testStatic()
/art/runtime/base/
Dbit_utils_test.cc153 static_cast<int64_t>(std::numeric_limits<int32_t>::max()) + 1;
155 static_cast<int64_t>(std::numeric_limits<uint32_t>::max()) + 1;
167 EXPECT_FALSE(IsInt<int32_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
169 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
182 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::max())); in TEST()
184 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::max())); in TEST()
188 EXPECT_FALSE(IsInt<int64_t>(63, std::numeric_limits<int64_t>::max())); in TEST()
190 EXPECT_TRUE(IsInt<int64_t>(64, std::numeric_limits<int64_t>::max())); in TEST()
202 static_assert(!IsInt<31, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#10");
204 static_assert(IsInt<32, int32_t>(std::numeric_limits<int32_t>::max()), "TestIsInt32#12");
[all …]
Dcasts.h98 (static_cast<uintmax_t>(std::numeric_limits<Dest>::max()) >= in dchecked_integral_cast()
99 static_cast<uintmax_t>(std::numeric_limits<Source>::max()) || in dchecked_integral_cast()
100 source <= static_cast<Source>(std::numeric_limits<Dest>::max()))); in dchecked_integral_cast()
Dbit_vector.cc258 storage_[idx] = std::numeric_limits<uint32_t>::max(); in SetInitialBits()
275 unsigned int max = storage_size_; in GetHighestBitSet() local
276 for (int idx = max - 1; idx >= 0; idx--) { in GetHighestBitSet()
Dhistogram-inl.h105 max_value_added_ = std::max(val, max_value_added_); in BucketiseValue()
126 min_value_added_ = std::numeric_limits<Value>::max(); in Reset()
/art/test/082-inline-execute/src/
DMain.java482 Math.max(1, 0);
483 Assert.assertEquals(Math.max(0, 0), 0);
484 Assert.assertEquals(Math.max(1, 0), 1);
485 Assert.assertEquals(Math.max(0, 1), 1);
486 Assert.assertEquals(Math.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE);
487 Assert.assertEquals(Math.max(Integer.MIN_VALUE, 0), 0);
488 Assert.assertEquals(Math.max(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MAX_VALUE);
502 Math.max(1L, 0L);
503 Assert.assertEquals(Math.max(0L, 0L), 0L);
504 Assert.assertEquals(Math.max(1L, 0L), 1L);
[all …]
/art/runtime/entrypoints/
Dmath_entrypoints_test.cc28 EXPECT_EQ(std::numeric_limits<int64_t>::max(), art_d2l(1.85e19)); in TEST_F()
40 EXPECT_EQ(std::numeric_limits<int64_t>::max(), art_f2l(1.85e19)); in TEST_F()
52 EXPECT_EQ(std::numeric_limits<int32_t>::max(), art_d2i(4.3e9)); in TEST_F()
64 EXPECT_EQ(std::numeric_limits<int32_t>::max(), art_f2i(4.3e9)); in TEST_F()
/art/test/053-wait-some/src/
DMain.java66 long max = delay + epsilon; in doit() local
71 } else if (elapsed > max) { in doit()
73 + "elapsed=" + elapsed + " max=" + max); in doit()
/art/runtime/verifier/
Dreg_type_cache-inl.h53 int32_t jchar_max = static_cast<int32_t>(std::numeric_limits<jchar>::max()); in CharConstant()
66 const ConstantType& result = FromCat1Const(std::numeric_limits<jint>::max(), false); in IntConstant()
72 const ConstantType& result = FromCat1Const(std::numeric_limits<jbyte>::max(), false); in PosByteConstant()
78 const ConstantType& result = FromCat1Const(std::numeric_limits<jshort>::max(), false); in PosShortConstant()
/art/runtime/arch/arm/
Dquick_entrypoints_cc_arm.cc55 fpr_double_index = std::max(fpr_double_index, RoundUp(fpr_index, 2)); in quick_invoke_reg_setup()
71 fpr_index = std::max(fpr_double_index, fpr_index); in quick_invoke_reg_setup()
/art/cmdline/
Dcmdline_parse_result.h74 const T& max) { in OutOfRange()
78 ", max: " + art::detail::ToStringAny(max)); in OutOfRange()
Dcmdline_types.h241 if (val <= std::numeric_limits<size_t>::max() / mul) {
245 val = std::numeric_limits<size_t>::max() & ~(1024-1);
299 || result > std::numeric_limits<unsigned int>::max() || result < 0) {
719 T max) {
723 if (value < min || value > max) {
724 CmdlineParseResult<T> out_of_range = CmdlineParseResult<T>::OutOfRange(value, min, max);
/art/test/089-many-methods/
Dexpected.txt2 trouble writing output: Too many field references: 131000; max is 65536.
/art/runtime/gc/accounting/
Dcard_table.cc127 memset(std::max(round_end, start_card), 0, end_card - std::max(round_end, start_card)); in ClearCardRange()
Dspace_bitmap.h101 void VisitRange(uintptr_t base, uintptr_t max, ObjectCallback* callback, void* arg) const;
144 uintptr_t max, SweepCallback* thunk, void* arg);
/art/compiler/optimizing/
Dstack_map_stream.cc46 stack_mask_max_ = std::max(stack_mask_max_, sp_mask->GetHighestBitSet()); in BeginStackMapEntry()
52 dex_pc_max_ = std::max(dex_pc_max_, dex_pc); in BeginStackMapEntry()
53 native_pc_offset_max_ = std::max(native_pc_offset_max_, native_pc_offset); in BeginStackMapEntry()
54 register_mask_max_ = std::max(register_mask_max_, register_mask); in BeginStackMapEntry()
/art/cmdline/detail/
Dcmdline_parse_argument_detail.h219 [](size_t max, const TokenRange& cur) { in CompleteArgument()
220 return std::max(max, cur.Size()); in CompleteArgument()
/art/compiler/jni/quick/arm/
Dcalling_convention_arm.cc153 fpr_double_index = (std::max(fpr_double_index * 2, RoundUp(fpr_index, 2))) / 2; in EntrySpills()
163 fpr_index = std::max(fpr_double_index * 2, fpr_index); in EntrySpills()
/art/test/082-inline-execute/src/junit/framework/
DComparisonCompactor.java68 …return (fPrefix > fContextLength ? ELLIPSIS : "") + fExpected.substring(Math.max(0, fPrefix - fCon… in computeCommonPrefix()
/art/test/021-string2/src/junit/framework/
DComparisonCompactor.java68 …return (fPrefix > fContextLength ? ELLIPSIS : "") + fExpected.substring(Math.max(0, fPrefix - fCon… in computeCommonPrefix()
/art/test/003-omnibus-opcodes/src/
DFloatMath.java309 Main.assertTrue(approxEqual(Math.max(ff, -5.0f), ff, 0.001f)); in jlmTests()
314 Main.assertTrue(approxEqual(Math.max(dd, -5.0), dd, 0.001)); in jlmTests()
/art/runtime/
Dutils.h53 if (std::numeric_limits<T>::max() < result) { in ParseUint()
67 if (result < std::numeric_limits<T>::min() || std::numeric_limits<T>::max() < result) { in ParseInt()
/art/test/455-set-vreg/
Dset_vreg_jni.cc54 CHECK(SetVRegPair(m, 4, std::numeric_limits<int64_t>::max(), kLongLoVReg, kLongHiVReg)); in VisitFrame()
/art/test/467-regalloc-pair/smali/
DTestCase.smali24 invoke-static {v2, v0}, Ljava/lang/Math;->max(II)I

1234