Home
last modified time | relevance | path

Searched full:sum (Results 1 – 25 of 55) sorted by relevance

123

/arkcompiler/runtime_core/tests/cts-assembly/
Darrays-06.pa37 # 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/
Dproxy.ts5 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));
Dexpect_output.txt15 Calculate sum: 1,2
/arkcompiler/runtime_core/verification/cflow/tests/
Djumps_map_test.cpp43 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/
Dfadd2.yaml38 # 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 …]
Dfadd2.64.yaml38 # 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 …]
Dfsub2.yaml147 …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 …]
Dfsub2.64.yaml147 …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/
Dthrow_exception.js17 var sum = 0;
18 print(sum)
25 sum += 1;
27 return sum;
Dsyntax_exception.js17 var sum = 0;
23 sum += 1;
25 return sum;
Darrow_func.js16 var sum = (num1, num2) => { function
23 print(sum(1,2));
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dgc_ring_buffer_test.cpp75 * @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/
Ddeoptimize_compare.pa19 # 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/
Dloops.ts41 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/
Dgc_ring_buffer.h26 // 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/
Dlazy_test.cpp50 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()
Dobj_pool_test.cpp192 int sum = 0; in TEST() local
198 sum += obj.a; in TEST()
203 EXPECT_EQ(sum, 3); in TEST()
/arkcompiler/runtime_core/libpandabase/tests/
Dbase_mem_stats_test.cpp43 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/
Dgc_pause_stats.py27 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/
Dhistogram.h28 * 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/
Dnumber-utils.h180 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/
Dlock_free_ring_buffer_test.cpp109 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/
Dmem_controller.cpp181 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/
Dset_operations.h98 Arg sum = SetUnion(args...); in SetDifference() local
99 Arg intersection = SetIntersection(arg, sum); in SetDifference()
/arkcompiler/ets_frontend/testTs/expect/expressions/binaryOperators/additionOperator/
DadditionOperatorWithConstrainedTypeParameter.txt1 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'sum'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 3…

123