/art/runtime/interpreter/ |
H A D | safe_math_test.cc | 27 // Adding 1 overflows 0x7ff... to 0x800... aka max and min. 28 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max(), 1), 30 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max(), 1), 34 EXPECT_EQ(SafeAdd(std::numeric_limits<int32_t>::max() - 1, 1), 35 std::numeric_limits<int32_t>::max()); 36 EXPECT_EQ(SafeAdd(std::numeric_limits<int64_t>::max() - 1, 1), 37 std::numeric_limits<int64_t>::max()); 62 // Subtracting 1 underflows 0x800... to 0x7ff... aka min and max. 64 std::numeric_limits<int32_t>::max()); 66 std::numeric_limits<int64_t>::max()); [all...] |
/art/test/133-static-invoke-super/src/ |
H A D | Main.java | 12 public void testDirect(int max) { argument 13 for (int i = 0; i < max; ++i) { 14 getVarDirect(max); 17 public void testStatic(int max) { argument 18 for (int i = 0; i < max; ++i) { 19 getVar(max);
|
/art/test/574-irreducible-and-constant-area/src/ |
H A D | Main.java | 32 Math.max(a, b); 38 Math.max(a, b);
|
/art/compiler/debug/ |
H A D | elf_compilation_unit.h | 31 uint64_t code_address = std::numeric_limits<uint64_t>::max();
|
H A D | elf_symtab_writer.h | 42 uint64_t mapping_symbol_address = std::numeric_limits<uint64_t>::max();
|
/art/runtime/entrypoints/ |
H A D | math_entrypoints_test.cc | 28 EXPECT_EQ(std::numeric_limits<int64_t>::max(), art_d2l(1.85e19)); 40 EXPECT_EQ(std::numeric_limits<int64_t>::max(), art_f2l(1.85e19)); 52 EXPECT_EQ(std::numeric_limits<int32_t>::max(), art_d2i(4.3e9)); 64 EXPECT_EQ(std::numeric_limits<int32_t>::max(), art_f2i(4.3e9));
|
/art/test/053-wait-some/src/ |
H A D | Main.java | 66 long max = delay + epsilon; 71 } else if (elapsed > max) { 73 + "elapsed=" + elapsed + " max=" + max);
|
/art/runtime/base/ |
H A D | bit_utils_test.cc | 153 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())); 169 EXPECT_TRUE(IsInt<int32_t>(32, std::numeric_limits<int32_t>::max())); 182 EXPECT_FALSE(IsInt<int64_t>(31, std::numeric_limits<int32_t>::max())); 184 EXPECT_TRUE(IsInt<int64_t>(32, std::numeric_limits<int32_t>::max())); 188 EXPECT_FALSE(IsInt<int64_t>(63, std::numeric_limits<int64_t>::max())); 190 EXPECT_TRUE(IsInt<int64_t>(64, std::numeric_limits<int64_t>::max())); 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()), "TestIsInt3 [all...] |
H A D | casts.h | 99 (static_cast<uintmax_t>(std::numeric_limits<Dest>::max()) >= 100 static_cast<uintmax_t>(std::numeric_limits<Source>::max()) || 101 source <= static_cast<Source>(std::numeric_limits<Dest>::max())));
|
H A D | bit_vector.cc | 223 // Difference until max, we know both accept it: 258 storage_[idx] = std::numeric_limits<uint32_t>::max(); 275 unsigned int max = storage_size_; local 276 for (int idx = max - 1; idx >= 0; idx--) {
|
/art/runtime/ |
H A D | primitive.h | 206 return std::numeric_limits<bool>::max(); 208 return std::numeric_limits<int8_t>::max(); 210 return std::numeric_limits<uint16_t>::max(); 212 return std::numeric_limits<int16_t>::max(); 214 return std::numeric_limits<int32_t>::max(); 216 return std::numeric_limits<int64_t>::max();
|
H A D | utils.h | 59 if (std::numeric_limits<T>::max() < result) { 73 if (result < std::numeric_limits<T>::min() || std::numeric_limits<T>::max() < result) { 371 double max, 379 static constexpr uint32_t max() { return std::numeric_limits<uint32_t>::max(); } function in struct:art::Arc4RandomGenerator 388 T GetRandomNumber(T min, T max) { argument 389 CHECK_LT(min, max); 390 std::uniform_int_distribution<T> dist(min, max);
|
/art/runtime/verifier/ |
H A D | reg_type_cache-inl.h | 53 int32_t jchar_max = static_cast<int32_t>(std::numeric_limits<jchar>::max()); 66 const ConstantType& result = FromCat1Const(std::numeric_limits<jint>::max(), false); 72 const ConstantType& result = FromCat1Const(std::numeric_limits<jbyte>::max(), false); 78 const ConstantType& result = FromCat1Const(std::numeric_limits<jshort>::max(), false);
|
/art/cmdline/ |
H A D | cmdline_parse_result.h | 70 // which is printed from the actual/min/max values. 74 const T& max) { 78 ", max: " + art::detail::ToStringAny(max)); 72 OutOfRange(const T& value, const T& min, const T& max) argument
|
/art/runtime/arch/arm/ |
H A D | quick_entrypoints_cc_arm.cc | 55 fpr_double_index = std::max(fpr_double_index, RoundUp(fpr_index, 2)); 71 fpr_index = std::max(fpr_double_index, fpr_index);
|
/art/tools/ahat/src/ |
H A D | SubsetSelector.java | 73 return Math.max(0, ivalue); 89 int less = Math.max(0, mLimit - kIncrAmount);
|
/art/test/082-inline-execute/src/ |
H A D | Main.java | 496 Math.max(1, 0); 497 Assert.assertEquals(Math.max(0, 0), 0); 498 Assert.assertEquals(Math.max(1, 0), 1); 499 Assert.assertEquals(Math.max(0, 1), 1); 500 Assert.assertEquals(Math.max(0, Integer.MAX_VALUE), Integer.MAX_VALUE); 501 Assert.assertEquals(Math.max(Integer.MIN_VALUE, 0), 0); 502 Assert.assertEquals(Math.max(Integer.MIN_VALUE, Integer.MAX_VALUE), Integer.MAX_VALUE); 516 Math.max(1L, 0L); 517 Assert.assertEquals(Math.max(0L, 0L), 0L); 518 Assert.assertEquals(Math.max( [all...] |
/art/runtime/utils/ |
H A D | dex_cache_arrays_layout-inl.h | 65 return std::max(ArraySize(sizeof(GcRoot<mirror::Class>), num_elements), pointer_size_); 78 return std::max(ArraySize(pointer_size_, num_elements), pointer_size_);
|
/art/test/445-checker-licm/src/ |
H A D | Main.java | 160 // The intrinsic call to max used inside the loop is invariant. 162 result += Math.max(x, y);
|
/art/runtime/gc/accounting/ |
H A D | card_table.cc | 129 memset(std::max(round_end, start_card), 0, end_card - std::max(round_end, start_card));
|
/art/compiler/optimizing/ |
H A D | stack_map_stream.cc | 46 stack_mask_max_ = std::max(stack_mask_max_, sp_mask->GetHighestBitSet()); 52 dex_pc_max_ = std::max(dex_pc_max_, dex_pc); 53 register_mask_max_ = std::max(register_mask_max_, register_mask); 133 max_native_pc_offset = std::max(max_native_pc_offset, entry.native_pc_offset); 139 int stack_mask_number_of_bits = stack_mask_max_ + 1; // Need room for max element too. 238 method_index_max = std::max(method_index_max, inline_entry.method_index); 239 dex_pc_max = std::max(dex_pc_max, inline_entry.dex_pc); 240 invoke_type_max = std::max(invoke_type_max, static_cast<uint32_t>(inline_entry.invoke_type));
|
/art/runtime/jit/ |
H A D | jit.cc | 66 if (jit_options->compile_threshold_ > std::numeric_limits<uint16_t>::max()) { 72 if (jit_options->warmup_threshold_ > std::numeric_limits<uint16_t>::max()) { 81 if (jit_options->osr_threshold_ > std::numeric_limits<uint16_t>::max()) { 86 if (jit_options->osr_threshold_ > std::numeric_limits<uint16_t>::max()) { 87 jit_options->osr_threshold_ = std::numeric_limits<uint16_t>::max(); 100 jit_options->priority_thread_weight_ = std::max( 114 jit_options->invoke_transition_weight_ = std::max(
|
/art/test/021-string2/src/junit/framework/ |
H A D | ComparisonCompactor.java | 68 return (fPrefix > fContextLength ? ELLIPSIS : "") + fExpected.substring(Math.max(0, fPrefix - fContextLength), fPrefix);
|
/art/test/082-inline-execute/src/junit/framework/ |
H A D | ComparisonCompactor.java | 68 return (fPrefix > fContextLength ? ELLIPSIS : "") + fExpected.substring(Math.max(0, fPrefix - fContextLength), fPrefix);
|
/art/compiler/jni/quick/arm/ |
H A D | calling_convention_arm.cc | 153 fpr_double_index = (std::max(fpr_double_index * 2, RoundUp(fpr_index, 2))) / 2; 163 fpr_index = std::max(fpr_double_index * 2, fpr_index);
|