/arkcompiler/runtime_core/compiler/optimizer/ir/ |
D | constants.h | 35 constexpr uint32_t MAX_NUM_STACK_SLOTS = std::numeric_limits<StackSlot>::max(); 36 constexpr uint32_t MAX_NUM_IMM_SLOTS = std::numeric_limits<ImmTableSlot>::max(); 38 constexpr uint32_t INVALID_PC = std::numeric_limits<PcType>::max(); 39 constexpr uint32_t INVALID_ID = std::numeric_limits<uint32_t>::max(); 40 constexpr uint32_t INVALID_VN = std::numeric_limits<uint32_t>::max(); 41 constexpr LinearNumber INVALID_LINEAR_NUM = std::numeric_limits<LinearNumber>::max(); 42 constexpr Register INVALID_REG = std::numeric_limits<Register>::max(); 43 constexpr StackSlot INVALID_STACK_SLOT = std::numeric_limits<StackSlot>::max(); 44 constexpr ImmTableSlot INVALID_IMM_TABLE_SLOT = std::numeric_limits<ImmTableSlot>::max(); 45 constexpr std::uint32_t INVALID_COLUMN_NUM = std::numeric_limits<std::uint32_t>::max(); [all …]
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | string_helpers.h | 73 …st char *str, T *num, T min = std::numeric_limits<T>::min(), T max = std::numeric_limits<T>::max()) 93 if (result < min || max < result) { 105 T max = std::numeric_limits<T>::max()) 107 return ParseInt(str.c_str(), num, min, max);
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | emitCompoundExponentiationAssignmentWithIndexingOnLHS4.ts | 25 function incrementIdx(max: number) { 31 let idx = Math.floor(Math.random() * max); 33 AssertType(Math.floor(Math.random() * max), "number"); 35 AssertType(Math.random() * max, "number"); 38 AssertType(max, "number");
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | bit_helper_test.cpp | 64 uint8_t uint8MaxValue = std::numeric_limits<uint8_t>::max(); in HWTEST_F_L0() 71 uint16_t uint16MaxValue = std::numeric_limits<uint16_t>::max(); in HWTEST_F_L0() 78 uint32_t uint32MaxValue = std::numeric_limits<uint32_t>::max(); in HWTEST_F_L0() 85 uint64_t uint64MaxValue = std::numeric_limits<uint64_t>::max(); in HWTEST_F_L0() 95 uint32_t uint32MaxValue = std::numeric_limits<uint32_t>::max(); in HWTEST_F_L0() 96 uint32_t uint32CommonValue1 = std::numeric_limits<uint32_t>::max() >> 1; in HWTEST_F_L0() 97 …uint32_t uint32CommonValue2 = std::numeric_limits<uint32_t>::max() >> 31; // 31 : right shift digit in HWTEST_F_L0() 111 uint64_t uint64MaxValue = std::numeric_limits<uint64_t>::max(); in HWTEST_F_L0() 112 uint64_t uint64CommonValue1 = std::numeric_limits<uint64_t>::max() >> 1; in HWTEST_F_L0() 113 …uint64_t uint64CommonValue2 = std::numeric_limits<uint64_t>::max() >> 63; // 63 : right shift digit in HWTEST_F_L0()
|
D | math_helper_test.cpp | 53 const uint32_t maxInput = std::numeric_limits<uint32_t>::max(); in HWTEST_F_L0() 61 const uint64_t maxInput = std::numeric_limits<uint64_t>::max(); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | heap_region_allocator.h | 39 size_t max = maxAnnoMemoryUsage_.load(std::memory_order_relaxed); in IncreaseAnnoMemoryUsage() local 40 …while (current > max && !maxAnnoMemoryUsage_.compare_exchange_weak(max, current, std::memory_order… in IncreaseAnnoMemoryUsage()
|
D | mem_map_allocator.cpp | 77 capacity_ = std::max<size_t>(physicalSize / PHY_SIZE_MULTIPLE, MIN_MEM_POOL_CAPACITY); in AdapterSuitablePoolCapacity() 79 capacity_ = std::max<size_t>(capacity_, STANDARD_POOL_SIZE); in AdapterSuitablePoolCapacity() 83 capacity_ = std::max<size_t>(capacity_, 128_MB); in AdapterSuitablePoolCapacity()
|
D | native_area_allocator.h | 85 size_t max = maxNativeMemoryUsage_.load(std::memory_order_relaxed); in IncreaseNativeMemoryUsage() local 86 …while (current > max && !maxNativeMemoryUsage_.compare_exchange_weak(max, current, std::memory_ord… in IncreaseNativeMemoryUsage()
|
D | chunk.cpp | 52 newSize = std::max(minNewSize, MAX_CHUNK_AREA_SIZE); in Expand() 55 if (newSize > static_cast<size_t>(std::numeric_limits<int>::max())) { in Expand()
|
D | dyn_chunk.cpp | 27 ASSERT(allocatedSize_ <= std::numeric_limits<size_t>::max() / ALLOCATE_MULTIPLIER); in Expand() 32 newSize = std::max(newSize, ALLOCATE_MIN_SIZE); in Expand()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | number_gate_info.h | 91 RangeInfo(int32_t min, int32_t max) in RangeInfo() argument 93 if (min == max) { in RangeInfo() 100 max_ = *std::lower_bound(rangeBounds_.begin(), rangeBounds_.end(), max); in RangeInfo() 132 return RangeInfo(std::min(min_, rhs.min_), std::max(max_, rhs.max_)); in Union() 137 return RangeInfo(std::max(min_, rhs.min_), std::min(max_, rhs.max_)); in intersection() 196 return RangeInfo(0, std::max(0, GetMax())); in SHR() 199 uint32_t tempMin = bit_cast<uint32_t>((max_ >= 0) ? std::max(0, min_) : min_); in SHR()
|
/arkcompiler/ets_runtime/ecmascript/intl/ |
D | locale_helper.h | 117 static bool IsAlpha(const std::string &str, size_t min, size_t max) in IsAlpha() argument 119 if (!InRange(str.length(), min, max)) { in IsAlpha() 130 static bool IsDigit(const std::string &str, size_t min, size_t max) in IsDigit() argument 132 if (!InRange(str.length(), min, max)) { in IsDigit() 143 static bool IsAlphanum(const std::string &str, size_t min, size_t max) in IsAlphanum() argument 145 if (!InRange(str.length(), min, max)) { in IsAlphanum()
|
/arkcompiler/runtime_core/compiler/tests/ |
D | encoder_operands.cpp | 176 u8_max = std::numeric_limits<uint8_t>::max(); in TEST() 178 u16_max = std::numeric_limits<uint16_t>::max(); in TEST() 180 u32_max = std::numeric_limits<uint32_t>::max(); in TEST() 182 u64_max = std::numeric_limits<uint64_t>::max(); in TEST() 185 i8_max = std::numeric_limits<int8_t>::max(); in TEST() 187 i16_max = std::numeric_limits<int16_t>::max(); in TEST() 189 i32_max = std::numeric_limits<int32_t>::max(); in TEST() 191 i64_max = std::numeric_limits<int64_t>::max(); in TEST() 194 f32_max = std::numeric_limits<float>::max(); in TEST() 196 f64_max = std::numeric_limits<double>::max(); in TEST()
|
/arkcompiler/runtime_core/libpandafile/tests/ |
D | bytecode_emitter_tests.cpp | 129 int num_ret = std::numeric_limits<int8_t>::max() - globals::IMM_5; 194 int num_ret = std::numeric_limits<int8_t>::max() - globals::IMM_4; 215 int num_ret = std::numeric_limits<int16_t>::max() - globals::IMM_5; 274 …td::tuple {globals::IMM_2, std::numeric_limits<int8_t>::min(), std::numeric_limits<int8_t>::max()}, in EmitJmpFwdBwd() 275 …::tuple {globals::IMM_3, std::numeric_limits<int16_t>::min(), std::numeric_limits<int16_t>::max()}, in EmitJmpFwdBwd() 276 …:tuple {globals::IMM_5, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max()}}; in EmitJmpFwdBwd() 356 TestJmpFwdBwd(0, std::numeric_limits<int8_t>::max()); 360 TestJmpFwdBwd(std::numeric_limits<int8_t>::max(), 0); 364 TestJmpFwdBwd(0, std::numeric_limits<int16_t>::max()); 368 TestJmpFwdBwd(std::numeric_limits<int8_t>::max(), std::numeric_limits<int16_t>::max()); [all …]
|
/arkcompiler/runtime_core/bytecode_optimizer/ |
D | bytecode_encoder.h | 30 static bool CanEncodeImmHelper(int64_t imm, uint32_t size, int64_t min, int64_t max) in CanEncodeImmHelper() argument 37 return imm >= min && imm <= max; in CanEncodeImmHelper()
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/ |
D | XTools.js | 72 export function RandInt(min = 0, max = 100) { argument 73 return Math.floor(Math.random() * (max - min)) + min;
|
/arkcompiler/runtime_core/assembler/ |
D | asm_isapi.rb | 58 a.each_with_index.max[1] # returns index of `last` max value 64 end.max
|
/arkcompiler/runtime_core/libpandabase/tests/ |
D | math_helpers_test.cpp | 78 ASSERT_EQ(0.0, panda::helpers::math::max<float>(0.0, 0.0)); 79 ASSERT_EQ(2.0, panda::helpers::math::max<float>(2.0, 1.0));
|
/arkcompiler/runtime_core/tests/checked/ |
D | const_array_test.pa | 19 …e, options: "--compiler-regex=_GLOBAL::main --compiler-unfold-const-array-max-size=2", entry: "_G… 29 …e, options: "--compiler-regex=_GLOBAL::main --compiler-unfold-const-array-max-size=4", entry: "_G… 39 #! RUN_PAOC options: "--compiler-regex=_GLOBAL::main --compiler-unfold-const-array-max-size=2" 43 #! RUN_PAOC options: "--compiler-regex=_GLOBAL::main --compiler-unfold-const-array-max-size=4"
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | inlineCache.cpp | 31 constexpr uint32_t LIMIT = std::numeric_limits<uint16_t>::max(); in Offset()
|
/arkcompiler/runtime_core/tests/cts-generator/ |
D | test-runner.rb | 41 def check_option_limit(optparser, options, key, min, max) argument 43 return if options[key] >= min && options[key] <= max 45 puts "Incorrect value for option: --#{key} [#{min}, #{max}]"
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_string_stub_builder.cpp | 384 GateRef pos, GateRef max, GateRef rhsCount) in StringIndexOf() argument 413 Branch(Int32LessThanOrEqual(*i, max), &next, &exit); in StringIndexOf() 432 Branch(Int32LessThanOrEqual(*i, max), &continueFor, &nextCount); in StringIndexOf() 453 Branch(Int32LessThanOrEqual(*i, max), &continueCount, &loopEnd); in StringIndexOf() 546 GateRef max = Int32Sub(lhsCount, rhsCount); in StringIndexOf() local 547 Branch(Int32LessThan(max, Int32(0)), &exit, &maxNotLessZero); in StringIndexOf() 563 … result = StringIndexOf(lhsData, true, rhsData, true, *posTag, max, rhsCount); in StringIndexOf() 568 … result = StringIndexOf(lhsData, false, rhsData, true, *posTag, max, rhsCount); in StringIndexOf() 579 … result = StringIndexOf(lhsData, true, rhsData, false, *posTag, max, rhsCount); in StringIndexOf() 584 … result = StringIndexOf(lhsData, false, rhsData, false, *posTag, max, rhsCount); in StringIndexOf()
|
/arkcompiler/ets_runtime/test/moduletest/stubbuilder/ |
D | stubbuilder.js | 1002 let max = data[0]; 1008 max = data[data.length - 1]; 1012 return [min, max, sum]; 1035 var max = arguments[0]; 1037 if (max < arguments[i]) { 1038 max = arguments[i]; 1041 return max;
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_locale.h | 571 int mxfdActualDefault = std::max(mnfd->GetInt(), mxfdDefault); in SetNumberFormatDigitOptions() 613 …static bool IsCheckRange(const std::string &str, size_t min, size_t max, bool(rangeCheckFunc)(char… in IsCheckRange() argument 615 if (!InRange(str.length(), min, max)) { in IsCheckRange() 626 static bool IsAlpha(const std::string &str, size_t min, size_t max) in IsAlpha() argument 628 if (!InRange(str.length(), min, max)) { in IsAlpha() 639 static bool IsDigit(const std::string &str, size_t min, size_t max) in IsDigit() argument 641 if (!InRange(str.length(), min, max)) { in IsDigit() 652 static bool IsAlphanum(const std::string &str, size_t min, size_t max) in IsAlphanum() argument 654 if (!InRange(str.length(), min, max)) { in IsAlphanum()
|
/arkcompiler/ets_runtime/ecmascript/regexp/ |
D | regexp_parser.cpp | 163 … if (UNLIKELY(x > (std::numeric_limits<uint32_t>::max() - static_cast<uint32_t>(d)) / HEX_VALUE)) { in ParseUnlimitedLengthHexNumber() 704 int max = -1; in ParseQuantifier() local 711 max = INT32_MAX; in ParseQuantifier() 718 max = INT32_MAX; in ParseQuantifier() 726 max = 1; in ParseQuantifier() 730 if (!ParserIntervalQuantifier(&min, &max)) { in ParseQuantifier() 735 if (min > max) { in ParseQuantifier() 753 if (min != -1 && max != -1 && !isEmpty_) { in ParseQuantifier() 765 if (max == INT32_MAX) { in ParseQuantifier() 776 … loopOp.EmitOpCode(&buffer_, atomBcStart - buffer_.GetSize() - loopOp.GetSize(), min, max); in ParseQuantifier() [all …]
|