/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | constants.h | 33 constexpr uint32_t MAX_NUM_STACK_SLOTS = std::numeric_limits<StackSlot>::max(); 34 constexpr uint32_t MAX_NUM_IMM_SLOTS = std::numeric_limits<ImmTableSlot>::max(); 36 constexpr uint32_t INVALID_PC = std::numeric_limits<PcType>::max(); 37 constexpr uint32_t INVALID_ID = std::numeric_limits<uint32_t>::max(); 38 constexpr uint32_t INVALID_VN = std::numeric_limits<uint32_t>::max(); 39 constexpr LinearNumber INVALID_LINEAR_NUM = std::numeric_limits<LinearNumber>::max(); 40 constexpr Register INVALID_REG = std::numeric_limits<Register>::max(); 41 constexpr StackSlot INVALID_STACK_SLOT = std::numeric_limits<StackSlot>::max(); 42 constexpr ImmTableSlot INVALID_IMM_TABLE_SLOT = std::numeric_limits<ImmTableSlot>::max(); 43 constexpr std::uint32_t INVALID_COLUMN_NUM = std::numeric_limits<std::uint32_t>::max(); [all...] |
H A D | debug_info.h | 26 static constexpr uint32_t INVALID_LINE_NUMBER = std::numeric_limits<uint32_t>::max(); 27 static constexpr uint32_t INVALID_FILE_INDEX = std::numeric_limits<uint32_t>::max(); 28 static constexpr uint32_t INVALID_DIR_INDEX = std::numeric_limits<uint32_t>::max();
|
/arkcompiler/runtime_core/compiler/optimizer/ir/ |
H A D | constants.h | 40 constexpr uint32_t MAX_NUM_STACK_SLOTS = std::numeric_limits<StackSlot>::max(); 41 constexpr uint32_t MAX_NUM_IMM_SLOTS = std::numeric_limits<ImmTableSlot>::max(); 43 constexpr uint32_t INVALID_PC = std::numeric_limits<PcType>::max(); 44 constexpr uint32_t INVALID_ID = std::numeric_limits<uint32_t>::max(); 45 constexpr uint32_t INVALID_VN = std::numeric_limits<uint32_t>::max(); 46 constexpr LinearNumber INVALID_LINEAR_NUM = std::numeric_limits<LinearNumber>::max(); 47 constexpr Register INVALID_REG = std::numeric_limits<Register>::max(); 48 constexpr StackSlot INVALID_STACK_SLOT = std::numeric_limits<StackSlot>::max(); 49 constexpr ImmTableSlot INVALID_IMM_TABLE_SLOT = std::numeric_limits<ImmTableSlot>::max(); 50 constexpr std::uint32_t INVALID_COLUMN_NUM = std::numeric_limits<std::uint32_t>::max(); [all...] |
/arkcompiler/ets_runtime/test/moduletest/regressmathmaxmin/ |
H A D | regressmathmaxmin.js | 48 // assertEquals(-Infinity, Math.max()); 49 print(Math.max()); 53 print(Math.max(object_factory(0, NaN, [0]))); 58 print(Math.max(object_factory(0, NaN, [0, 0]), 64 print(Math.max(object_factory(0, NaN, [0, 0, 0]), 71 print(Math.max(object_factory(0, 2, [0, 0, 0]), 78 print(Math.max(object_factory(0, 2, [0, 0, 0]), 118 print(Math.max(2, 465, 30.4302, -34.444)); 119 print(Math.max(2, 465, undefined, -34.444)); 120 print(Math.max( [all...] |
/arkcompiler/runtime_core/verifier/tests/js/ |
H A D | test_constant_pool_content.js | 19 let max = 0; 21 if (i > max) { 22 max = i; 25 return max;
|
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/number_subtypes/ |
H A D | number_subtypes.rb | 16 def initialize(name, min, max, sum) 17 @name, @min, @max, @sum = name, min, max, sum 29 @max
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
H A D | live_registers.cpp | 26 : begin(pBegin), end(pEnd), min(pMin), max(pMax), parent(pParent) in Split() 34 LifeNumber max; // NOLINT(misc-non-private-member-variables-in-classes) 38 // copy intervals with assigned registers and compute min and max life numbers covered by all these intervals 42 LifeNumber minLn = std::numeric_limits<LifeNumber>::max(); 48 maxLn = std::max(maxLn, split->GetEnd()); 59 LifeNumber leftMinLn = std::numeric_limits<LifeNumber>::max(); in PartitionLeftSplit() 64 leftMaxLn = std::max(leftMaxLn, em->GetEnd()); in PartitionLeftSplit() 77 LifeNumber rightMinLn = std::numeric_limits<LifeNumber>::max(); in PartitionRightSplit() 82 rightMaxLn = std::max(rightMaxLn, em->GetEnd()); in PartitionRightSplit() 121 auto midpoint = split->min + (split->max in BuildIntervalsTree() [all...] |
/arkcompiler/ets_frontend/arkguard/test/grammar/jsfile/ |
H A D | script1.js | 30 let max = arr[0]; 32 if (arr[i] > max) { 33 max = arr[i]; 36 return max;
|
/arkcompiler/runtime_core/libpandabase/utils/ |
H A D | string_helpers.h | 73 bool ParseInt(const char *str, T *num, T min = std::numeric_limits<T>::min(), T max = std::numeric_limits<T>::max()) in ParseInt() 93 if (result < min || max < result) { in ParseInt() 105 T max = std::numeric_limits<T>::max()) in ParseInt() 107 return ParseInt(str.c_str(), num, min, max); in ParseInt()
|
/arkcompiler/runtime_core/static_core/libpandabase/utils/ |
H A D | string_helpers.h | 73 bool ParseInt(const char *str, T *num, T min = std::numeric_limits<T>::min(), T max = std::numeric_limits<T>::max()) in ParseInt() 93 if (result < min || max < result) { in ParseInt() 105 T max = std::numeric_limits<T>::max()) in ParseInt() 107 return ParseInt(str.c_str(), num, min, max); in ParseInt()
|
H A D | utils.h | 28 if (v > static_cast<unsigned long long>(std::numeric_limits<int>::max())) { // NOLINT(google-runtime-int) in _I() 37 v > static_cast<long double>(std::numeric_limits<double>::max())) { in _D()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
H A D | bit_helper_test.cpp | 40 uint8_t uint8MaxValue = std::numeric_limits<uint8_t>::max(); in HWTEST_F_L0() 47 uint16_t uint16MaxValue = std::numeric_limits<uint16_t>::max(); in HWTEST_F_L0() 54 uint32_t uint32MaxValue = std::numeric_limits<uint32_t>::max(); in HWTEST_F_L0() 61 uint64_t uint64MaxValue = std::numeric_limits<uint64_t>::max(); in HWTEST_F_L0() 71 uint32_t uint32MaxValue = std::numeric_limits<uint32_t>::max(); in HWTEST_F_L0() 72 uint32_t uint32CommonValue1 = std::numeric_limits<uint32_t>::max() >> 1; in HWTEST_F_L0() 73 uint32_t uint32CommonValue2 = std::numeric_limits<uint32_t>::max() >> 31; // 31 : right shift digit in HWTEST_F_L0() 87 uint64_t uint64MaxValue = std::numeric_limits<uint64_t>::max(); in HWTEST_F_L0() 88 uint64_t uint64CommonValue1 = std::numeric_limits<uint64_t>::max() >> 1; in HWTEST_F_L0() 89 uint64_t uint64CommonValue2 = std::numeric_limits<uint64_t>::max() >> 6 in HWTEST_F_L0() [all...] |
H A D | math_helper_test.cpp | 29 const uint32_t maxInput = std::numeric_limits<uint32_t>::max(); in HWTEST_F_L0() 37 const uint64_t maxInput = std::numeric_limits<uint64_t>::max(); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
H A D | number_gate_info.h | 95 RangeInfo(int32_t min, int32_t max) in RangeInfo() argument 97 if (min == max) { in RangeInfo() 104 max_ = *std::lower_bound(rangeBounds_.begin(), rangeBounds_.end(), max); in RangeInfo() 143 return RangeInfo(std::min(min_, rhs.min_), std::max(max_, rhs.max_)); in Union() 148 return RangeInfo(std::max(min_, rhs.min_), std::min(max_, rhs.max_)); in intersection() 178 int32_t nmax = std::max(std::abs(rhs.min_), std::abs(rhs.max_)); in operator %() 207 return std::max({ TryMul(min_, rhs.min_), TryMul(min_, rhs.max_), in GetMaxMulResult() 290 return RangeInfo(0, std::max(0, GetMax())); in SHR() 293 uint32_t tempMin = bit_cast<uint32_t>((max_ >= 0) ? std::max(0, min_) : min_); in SHR()
|
/arkcompiler/ets_runtime/ecmascript/mem/ |
H A D | heap_region_allocator.h | 40 size_t max = maxAnnoMemoryUsage_.load(std::memory_order_relaxed); in IncreaseAnnoMemoryUsage() local 41 while (current > max && !maxAnnoMemoryUsage_.compare_exchange_weak(max, current, std::memory_order_relaxed)) { in IncreaseAnnoMemoryUsage()
|
/arkcompiler/ets_runtime/ecmascript/intl/ |
H A D | locale_helper.h | 119 static bool IsAlpha(const std::string &str, size_t min, size_t max) in IsAlpha() argument 121 if (!InRange(str.length(), min, max)) { in IsAlpha() 132 static bool IsDigit(const std::string &str, size_t min, size_t max) in IsDigit() argument 134 if (!InRange(str.length(), min, max)) { in IsDigit() 145 static bool IsAlphanum(const std::string &str, size_t min, size_t max) in IsAlphanum() argument 147 if (!InRange(str.length(), min, max)) { in IsAlphanum()
|
/arkcompiler/runtime_core/static_core/libpandabase/taskmanager/utils/ |
H A D | task_time_stats.cpp | 83 meanTimeStats.maxExecutionTime = std::max(executionTime, meanTimeStats.maxExecutionTime); in CollectLifeAndExecutionTimes() 84 meanTimeStats.maxLifeTime = std::max(lifeTime, meanTimeStats.maxLifeTime); in CollectLifeAndExecutionTimes() 130 maxLifeTime = std::max(meanStatistics.maxLifeTime, maxLifeTime); in GetStatisticsForProperties() 131 maxExecutionTime = std::max(meanStatistics.maxExecutionTime, maxExecutionTime); in GetStatisticsForProperties() 137 stream << "Task " << prop << ": mean life time: " << meanLifeTime << "us; max life time: " << maxLifeTime in GetStatisticsForProperties() 139 << "max execution time: " << maxExecutionTime << "us; count of tasks: " << sumTaskCount << ";"; in GetStatisticsForProperties()
|
H A D | wait_list.h | 106 WaiterId AddValueToWait(T value, uint64_t timeToWait = std::numeric_limits<uint64_t>().max()) in AddValueToWait() 112 // Check if we need to set max possible time in AddValueToWait() 113 if (std::numeric_limits<uint64_t>().max() - timeToWait < currentTime) { in AddValueToWait() 114 targetTime = std::numeric_limits<uint64_t>().max(); in AddValueToWait()
|
/arkcompiler/toolchain/build/toolchain/ |
H A D | get_concurrent_links.py | 58 mem_total_bytes = max(0, mem_total_bytes - reserve_mem_gb * 2**30) 60 max(1, mem_total_bytes / mem_per_link_gb / 2**30)) 61 hard_cap = max(1, int(os.getenv('GYP_LINK_CONCURRENCY_MAX', 2**32)))
|
/arkcompiler/runtime_core/static_core/runtime/coroutines/ |
H A D | stackful_common.h | 26 inline constexpr AffinityMask AFFINITY_MASK_FULL = std::numeric_limits<AffinityMask>::max(); 37 inline constexpr WorkerId INVALID_WORKER_ID = std::numeric_limits<WorkerId>::max();
|
/arkcompiler/runtime_core/libpandafile/tests/ |
H A D | bytecode_emitter_tests.cpp | 129 int num_ret = std::numeric_limits<int8_t>::max() - globals::IMM_5; in HWTEST() 194 int num_ret = std::numeric_limits<int8_t>::max() - globals::IMM_4; in HWTEST() 215 int num_ret = std::numeric_limits<int16_t>::max() - globals::IMM_5; in HWTEST() 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() 356 TestJmpFwdBwd(0, std::numeric_limits<int8_t>::max()); in HWTEST() 360 TestJmpFwdBwd(std::numeric_limits<int8_t>::max(), 0); in HWTEST() 364 TestJmpFwdBwd(0, std::numeric_limits<int16_t>::max()); in HWTEST() 368 TestJmpFwdBwd(std::numeric_limits<int8_t>::max(), st in HWTEST() [all...] |
/arkcompiler/runtime_core/compiler/tests/ |
H A 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() [all...] |
/arkcompiler/runtime_core/bytecode_optimizer/ |
H A 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/ |
H A D | XTools.js | 73 export function RandInt(min = 0, max = 100) { 74 return Math.floor(Math.random() * (max - min)) + min;
|
/arkcompiler/runtime_core/static_core/bytecode_optimizer/ |
H A 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()
|