/arkcompiler/runtime_core/libpandabase/utils/ |
D | string_helpers.h | 73 bool ParseInt(const char *str, T *num, T min = std::numeric_limits<T>::min(), T max = std::numeric_… 93 if (result < min || max < result) { 104 bool ParseInt(const std::string &str, T *num, T min = std::numeric_limits<T>::min(), 107 return ParseInt(str.c_str(), num, min, max);
|
D | bit_memory_region-inl.h | 46 width = std::min<size_t>(i, BITS_PER_WORD); in Dump()
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | regAllocator.ts | 180 let min = operands.length; 184 if (num < min) { 186 min = num; 189 if (min > 0) { 232 let min = operands.length; 233 spillCount = Math.max(spillCount, min); 236 if (num < min) { 237 min = num; 240 if (min > 0) {
|
/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() 94 min_ = max_ = min; in RangeInfo() 96 auto it = std::upper_bound(rangeBounds_.begin(), rangeBounds_.end(), min); 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() 200 uint32_t tempMax = bit_cast<uint32_t>((min_ < 0) ? std::min(-1, max_) : max_); in SHR()
|
/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/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 | 175 uint8_t u8 = random_gen(), u8_z = 0, u8_min = std::numeric_limits<uint8_t>::min(), in TEST() 177 uint16_t u16 = random_gen(), u16_z = 0, u16_min = std::numeric_limits<uint16_t>::min(), in TEST() 179 uint32_t u32 = random_gen(), u32_z = 0, u32_min = std::numeric_limits<uint32_t>::min(), in TEST() 181 uint64_t u64 = random_gen(), u64_z = 0, u64_min = std::numeric_limits<uint64_t>::min(), in TEST() 184 int8_t i8 = random_gen(), i8_z = 0, i8_min = std::numeric_limits<int8_t>::min(), in TEST() 186 int16_t i16 = random_gen(), i16_z = 0, i16_min = std::numeric_limits<int16_t>::min(), in TEST() 188 int32_t i32 = random_gen(), i32_z = 0, i32_min = std::numeric_limits<int32_t>::min(), in TEST() 190 int64_t i64 = random_gen(), i64_z = 0, i64_min = std::numeric_limits<int64_t>::min(), in TEST() 193 float f32 = random_gen(), f32_z = 0, f32_min = std::numeric_limits<float>::min(), in TEST() 195 double f64 = random_gen(), f64_z = 0, f64_min = std::numeric_limits<double>::min(), in TEST()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | bit_helper_test.cpp | 65 uint8_t uint8MinValue = std::numeric_limits<uint8_t>::min(); in HWTEST_F_L0() 72 uint16_t uint16MinValue = std::numeric_limits<uint16_t>::min(); in HWTEST_F_L0() 79 uint32_t uint32MinValue = std::numeric_limits<uint32_t>::min(); in HWTEST_F_L0() 86 uint64_t uint64MinValue = std::numeric_limits<uint64_t>::min(); in HWTEST_F_L0() 98 uint32_t uint32MinValue = std::numeric_limits<uint32_t>::min(); in HWTEST_F_L0() 114 uint64_t uint64MinValue = std::numeric_limits<uint64_t>::min(); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/taskpool/ |
D | taskpool.cpp | 63 return std::min<uint32_t>(threadNum, MAX_TASKPOOL_THREAD_NUM); in TheMostSuitableThreadNum() 65 uint32_t numOfThreads = std::min<uint32_t>(NumberOfCpuCore() / 2, MAX_TASKPOOL_THREAD_NUM); in TheMostSuitableThreadNum()
|
/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/runtime_core/libpandabase/tests/ |
D | math_helpers_test.cpp | 75 ASSERT_EQ(0.0, panda::helpers::math::min<float>(0.0, 0.0)); 76 ASSERT_EQ(1.0, panda::helpers::math::min<float>(1.0, 2.0));
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
D | parallel_evacuator-inl.h | 194 uint32_t maxThreadNum = std::min(heap_->GetMaxEvacuateTaskCount(), in CalculateEvacuationThreadNum() 196 return static_cast<int>(std::min(std::max(1U, length / regionPerThread), maxThreadNum)); in CalculateEvacuationThreadNum() 204 uint32_t maxThreadNum = std::min(heap_->GetMaxEvacuateTaskCount(), in CalculateUpdateThreadNum() 206 return static_cast<int>(std::min(std::max(1U, length), maxThreadNum)); in CalculateUpdateThreadNum()
|
D | gc_stats.cpp | 158 double survivalRate = std::min(copiedRate + premotedRate, 1.0); in PrintGCMemoryStatistic() 169 double survivalRate = std::min(copiedRate + premotedRate, 1.0); in PrintGCMemoryStatistic() 304 double survivalRate = std::min(copiedRate + promotedRate, 1.0); in PrintGCSummaryStatistic() 324 double survivalRate = std::min(copiedRate + promotedRate, 1.0); in PrintGCSummaryStatistic() 426 std::min(GetRecordDuration(RecordDuration::SEMI_MIN_PAUSE), duration)); in RecordStatisticAfterGC() 446 std::min(GetRecordDuration(RecordDuration::YOUNG_MIN_PAUSE), duration)); in RecordStatisticAfterGC() 467 std::min(GetRecordDuration(RecordDuration::OLD_MIN_PAUSE), duration)); in RecordStatisticAfterGC() 485 std::min(GetRecordDuration(RecordDuration::COMPRESS_MIN_PAUSE), duration)); in RecordStatisticAfterGC()
|
D | mem_controller.cpp | 37 size_t result = static_cast<size_t>(std::min(limitAboveMinSize, halfToMaxSize)); in CalculateAllocLimit() 38 result = static_cast<size_t>(std::min(result, maxSize)); in CalculateAllocLimit() 72 factor = std::min(maxGrowingFactor, factor); in CalculateGrowingFactor()
|
D | mem_map_allocator.cpp | 81 capacity_ = std::min<size_t>(capacity_, STANDARD_POOL_SIZE); in AdapterSuitablePoolCapacity()
|
/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/ |
D | js_locale.h | 565 mnfdDefault = std::min(mnfdDefault, mxfd->GetInt()); 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()
|
D | date_parse.cpp | 106 DateUnit min = proxy->GetDate(); in ParseIsoDateTime() local 107 if (!min.IsTwoDecimalDigit()) { in ParseIsoDateTime() 110 timeValue->SetData(min.GetValue()); in ParseIsoDateTime()
|
/arkcompiler/runtime_core/templates/events/ |
D | events.h.erb | 32 … std::copy(class_name.begin(), class_name.begin() + std::min(class_name.size(), BUF_SIZE - 1) + 1, 34 …std::copy(method_name.begin(), method_name.begin() + std::min(method_name.size(), BUF_SIZE - 1) + …
|
/arkcompiler/ets_runtime/ecmascript/regexp/ |
D | regexp_parser.cpp | 703 int min = -1; in ParseQuantifier() local 710 min = 0; in ParseQuantifier() 717 min = 1; in ParseQuantifier() 725 min = 0; in ParseQuantifier() 730 if (!ParserIntervalQuantifier(&min, &max)) { in ParseQuantifier() 735 if (min > max) { in ParseQuantifier() 753 if (min != -1 && max != -1 && !isEmpty_) { in ParseQuantifier() 776 … loopOp.EmitOpCode(&buffer_, atomBcStart - buffer_.GetSize() - loopOp.GetSize(), min, max); in ParseQuantifier() 779 … loopOp.EmitOpCode(&buffer_, atomBcStart - buffer_.GetSize() - loopOp.GetSize(), min, max); in ParseQuantifier() 782 if (min == 0) { in ParseQuantifier()
|
D | regexp_opcode.cpp | 229 uint32_t LoopOpCode::EmitOpCode(DynChunk *buf, uint32_t start, uint32_t min, uint32_t max) const in EmitOpCode() argument 233 buf->EmitU32(min); in EmitOpCode() 247 uint32_t LoopGreedyOpCode::EmitOpCode(DynChunk *buf, uint32_t start, uint32_t min, uint32_t max) co… in EmitOpCode() argument 251 buf->EmitU32(min); in EmitOpCode() 583 iter->first = std::min(iter->first, start); in Insert() 694 iter->first = std::min(iter->first, iter2->first); in Compress()
|
/arkcompiler/runtime_core/libpandafile/tests/ |
D | bytecode_emitter_tests.cpp | 107 int num_ret = -std::numeric_limits<int8_t>::min(); 151 int num_ret = -std::numeric_limits<int8_t>::min() + 1; 169 int num_ret = -std::numeric_limits<int16_t>::min(); 274 …std::tuple {globals::IMM_2, std::numeric_limits<int8_t>::min(), std::numeric_limits<int8_t>::max()… in EmitJmpFwdBwd() 275 …std::tuple {globals::IMM_3, std::numeric_limits<int16_t>::min(), std::numeric_limits<int16_t>::max… in EmitJmpFwdBwd() 276 …std::tuple {globals::IMM_5, std::numeric_limits<int32_t>::min(), std::numeric_limits<int32_t>::max… in EmitJmpFwdBwd() 380 int num_ret = -std::numeric_limits<int16_t>::min() + 1;
|
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/ |
D | heap_snapshot_json_serializer.h | 51 int writeSize = std::min(static_cast<int>(end - cur), dstSize); in Write()
|
/arkcompiler/runtime_core/templates/options/ |
D | options.h.erb | 173 % min, max = op.range.match('(\d+)\D*(\d+)').captures; 174 % if op.default.to_i > max.to_i || op.default.to_i < min.to_i 177 …"<%= op.name %>", <%= op.default_value %>, <%= op.full_description %>, <%= min.to_i %>, <%= max.to…
|
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/ |
D | BUILD.gn | 16 …= "//component_dist/aosp-x86_64/packages_to_install/ace_engine_full/ark_build/strip.native.min.abc"
|