| /arkcompiler/runtime_core/tests/cts-assembly/ |
| D | arrays-06.pa | 37 # int sum = 0; 39 # return sum; 43 # sum += arr[i]; 45 # return sum + foo4(n - 1); 49 # int sum = 0; 53 # sum += arr[i]; 56 # sum += foo4(n); 57 # return sum; 61 # int sum = 0; 65 # sum += arr[i]; [all …]
|
| /arkcompiler/ets_runtime/test/aottest/proxy/ |
| D | proxy.ts | 5 function sum(a:number, b:number):number { 11 print(`Calculate sum: ${argumentsList}`); 12 // expected output: "Calculate sum: 1,2" 18 const proxy1 = new Proxy(sum, handler); 20 print(sum(1, 2));
|
| D | expect_output.txt | 15 Calculate sum: 1,2
|
| /arkcompiler/runtime_core/verification/cflow/tests/ |
| D | jumps_map_test.cpp | 43 uintptr_t sum = 0; in TEST_F() local 44 map.EnumerateAllTargets<const char *>([&sum, &code](const char *tgt) { in TEST_F() 46 sum += val; in TEST_F() 50 EXPECT_EQ(sum, 5 + 128 + 145); in TEST_F() 52 sum = 0; in TEST_F() 54 map.EnumerateAllJumpsToTarget<const char *>(&code[5], [&sum, &code](const char *tgt) { in TEST_F() 56 sum += val; in TEST_F() 60 EXPECT_EQ(sum, 5 + 11 + 12 + 13); in TEST_F()
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | fadd2.yaml | 38 # Sum of any value and NaN is NaN 164 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is… 166 The sum or the difference of infinity and any finite value is infinity. 174 # Sum of +Inf and value 231 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is… 233 The sum or the difference of infinity and any finite value is infinity. 242 # Sum of -Inf and value 310 The sum of opposite infinities or the difference of the same sign infinities is NaN. 317 # Sum of opposite Inf-s 335 The sum or the difference of infinity and any finite value is infinity. [all …]
|
| D | fadd2.64.yaml | 38 # Sum of any value and NaN is NaN 164 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is… 166 The sum or the difference of infinity and any finite value is infinity. 174 # Sum of +Inf and value 231 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is… 233 The sum or the difference of infinity and any finite value is infinity. 242 # Sum of -Inf and value 310 The sum of opposite infinities or the difference of the same sign infinities is NaN. 317 # Sum of opposite Inf-s 335 The sum or the difference of infinity and any finite value is infinity. [all …]
|
| D | fsub2.yaml | 147 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is… 149 The sum or the difference of infinity and any finite value is infinity. 209 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is… 211 The sum or the difference of infinity and any finite value is infinity. 282 The sum of opposite infinities or the difference of the same sign infinities is NaN. 308 The sum or the difference of infinity and any finite value is infinity. 310 The sum or the difference of zeros is zero. 311 …Exceptions are the sum of two negative zeros and the difference of negative and positive zero - th… 377 The sum or the difference of infinity and any finite value is infinity. 379 The sum or the difference of zeros is zero. [all …]
|
| D | fsub2.64.yaml | 147 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is… 149 The sum or the difference of infinity and any finite value is infinity. 209 …The sum of two infinities of the same sign or the difference of two infinities of opposite sign is… 211 The sum or the difference of infinity and any finite value is infinity. 282 The sum of opposite infinities or the difference of the same sign infinities is NaN. 308 The sum or the difference of infinity and any finite value is infinity. 310 The sum or the difference of zeros is zero. 311 …Exceptions are the sum of two negative zeros and the difference of negative and positive zero - th… 377 The sum or the difference of infinity and any finite value is infinity. 379 The sum or the difference of zeros is zero. [all …]
|
| /arkcompiler/toolchain/tooling/test/testcases/js/ |
| D | throw_exception.js | 17 var sum = 0; 18 print(sum) 25 sum += 1; 27 return sum;
|
| D | syntax_exception.js | 17 var sum = 0; 23 sum += 1; 25 return sum;
|
| D | arrow_func.js | 16 var sum = (num1, num2) => { function 23 print(sum(1,2));
|
| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | gc_ring_buffer_test.cpp | 75 * @tc.name: Sum 76 * @tc.desc: The "Sum" function calculates the sum of stored data by calling the callback function. 80 HWTEST_F_L0(GCRingBufferTest, Sum) in HWTEST_F_L0() argument 88 EXPECT_EQ(gcBuffer.Sum(SumCallback, 0), 45); in HWTEST_F_L0() 94 EXPECT_EQ(gcBuffer.Sum(SumCallback, 0), 10); in HWTEST_F_L0()
|
| /arkcompiler/runtime_core/tests/checked/ |
| D | deoptimize_compare.pa | 19 # return sum(array, 10); 21 # public static int sum(int[] arr, int size) { 32 #! METHOD "sum" 39 .function i32 sum(i32[] a0, i32 a1) <> {
|
| /arkcompiler/ets_runtime/test/aottest/loops/ |
| D | loops.ts | 41 var sum:number = 0; variable 44 sum += i; 46 print(sum); 68 sum = 0; 70 sum += i; 73 print(sum);
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | gc_ring_buffer.h | 26 // return the sum and reset data. 53 // This function will return the sum of the elements_. The parameter callback 54 // should define the sum function of data type T. 56 T Sum(Callback callback, const T &initial) const in Sum() function
|
| /arkcompiler/runtime_core/verification/util/tests/ |
| D | lazy_test.cpp | 50 int sum = 0; in TEST() local 51 ForEach(ConstLazyFetch(test_data), [&sum](int val) { sum += val; }); in TEST() 52 EXPECT_EQ(sum, 5); in TEST()
|
| D | obj_pool_test.cpp | 192 int sum = 0; in TEST() local 198 sum += obj.a; in TEST() 203 EXPECT_EQ(sum, 3); in TEST()
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | base_mem_stats_test.cpp | 43 size_t sum = 0; variable 45 sum += i; 49 ASSERT_EQ(sum, stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); 51 ASSERT_EQ(sum - N, stats.GetFootprint(SpaceType::SPACE_TYPE_CODE));
|
| /arkcompiler/runtime_core/scripts/ |
| D | gc_pause_stats.py | 27 LIST_OF_STATS = ["count", "min", "max", "avg", "sum"] 104 "sum": 0.0, 108 sum_v = trigger_info.get("sum") + time_value 119 "sum": sum_v, 148 "sum": 0.0, 184 "sum": 0.0,
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | histogram.h | 28 * Minimum, maximum, count, average, sum, dispersion 49 * @return PandaString with Sum, Avg, Max 109 * Minimum, maximum, count, average, sum, dispersion
|
| /arkcompiler/runtime_core/assembler/utils/ |
| D | number-utils.h | 180 size_t sum = 0; in ToNumber() local 184 sum = sum * DEC_BASE + static_cast<size_t>(i - '0'); in ToNumber() 190 return sum; in ToNumber()
|
| /arkcompiler/runtime_core/libpandabase/tests/ringbuf/ |
| D | lock_free_ring_buffer_test.cpp | 109 size_t sum = 0; in TEST() local 120 sum += pop_sum; // can be without atomics because we use it after .join only -> HB in TEST() 121 ASSERT_EQ(sum, expected_sum); in TEST()
|
| /arkcompiler/ets_runtime/ecmascript/mem/ |
| D | mem_controller.cpp | 181 BytesAndDuration sum = buffer.Sum( in CalculateAverageSpeed() local 189 uint64_t bytes = sum.first; in CalculateAverageSpeed() 190 double durations = sum.second; in CalculateAverageSpeed()
|
| /arkcompiler/runtime_core/verification/util/ |
| D | set_operations.h | 98 Arg sum = SetUnion(args...); in SetDifference() local 99 Arg intersection = SetIntersection(arg, sum); in SetDifference()
|
| /arkcompiler/ets_frontend/testTs/expect/expressions/binaryOperators/additionOperator/ |
| D | additionOperatorWithConstrainedTypeParameter.txt | 1 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'sum'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 3…
|