Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 18 of 18) sorted by relevance

/ark/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 …]
/ark/runtime_core/verification/cflow/tests/
Djumps_map_test.cpp44 uintptr_t sum = 0; in TEST_F() local
45 map.EnumerateAllTargets<const char *>([&sum, &code](const char *tgt) { in TEST_F()
47 sum += val; in TEST_F()
51 EXPECT_EQ(sum, 5 + 128 + 145); in TEST_F()
53 sum = 0; in TEST_F()
55 map.EnumerateAllJumpsToTarget<const char *>(&code[5], [&sum, &code](const char *tgt) { in TEST_F()
57 sum += val; in TEST_F()
61 EXPECT_EQ(sum, 5 + 11 + 12 + 13); in TEST_F()
/ark/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()
/ark/runtime_core/libpandabase/tests/
Dbase_mem_stats_test.cpp43 size_t sum = 0; in TEST_F() local
45 sum += i; in TEST_F()
49 ASSERT_EQ(sum, stats.GetAllocated(SpaceType::SPACE_TYPE_CODE)); in TEST_F()
51 ASSERT_EQ(sum - N, stats.GetFootprint(SpaceType::SPACE_TYPE_CODE)); in TEST_F()
/ark/js_runtime/ecmascript/tooling/test/js/
DArrowFunc.js16 var sum = (num1, num2) => { function
23 print(sum(1,2));
/ark/runtime_core/assembler/utils/
Dnumber-utils.h195 size_t sum = 0; in ToNumber() local
199 sum = sum * DEC_BASE + static_cast<size_t>(i - '0'); in ToNumber()
205 return sum; in ToNumber()
/ark/js_runtime/ecmascript/mem/
Dmem_controller.cpp161 BytesAndDuration sum = buffer.Sum( in CalculateAverageSpeed() local
169 uint64_t bytes = sum.first; in CalculateAverageSpeed()
170 double durations = sum.second; in CalculateAverageSpeed()
/ark/runtime_core/verification/util/
Dset_operations.h98 Arg sum = SetUnion(args...); in SetDifference() local
99 Arg intersection = SetIntersection(arg, sum); in SetDifference()
/ark/ts2abc/testTs/expect/expressions/binaryOperators/additionOperator/
DadditionOperatorWithConstrainedTypeParameter.txt1 {'lb': [{'t': 2, 'v': 3}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'sum'}, {'t': 2, 'v': 3…
/ark/runtime_core/runtime/
Dclass_linker_extension.cpp220 size_t sum = boot_context_.NumLoadedClasses(); in NumLoadedClasses() local
224 sum += ctx->NumLoadedClasses(); in NumLoadedClasses()
227 return sum; in NumLoadedClasses()
Dclass_linker.cpp1314 size_t sum = 0; in NumLoadedClasses() local
1321 sum += ext->NumLoadedClasses(); in NumLoadedClasses()
1324 return sum; in NumLoadedClasses()
/ark/runtime_core/tests/benchmarks/
Dbitops-bits-in-byte.pa23 movi v3, 0 #sum
Dbitops-3bit-bits-in-byte.pa23 movi v3, 0 #sum
Daccess-nsieve.pa33 movi v2, 0 #sum
Dbitops-nsieve-bits.pa25 movi.64 v4, 0 #sum
/ark/js_runtime/ecmascript/tests/
Djs_serializer_test.cpp200 int sum = 0; in JSSetTest() local
204 sum += a; in JSSetTest()
206 EXPECT_EQ(sum, 16); // 16 : test case in JSSetTest()
228 int sum = 0; in JSArrayTest() local
232 sum += a; in JSArrayTest()
234 EXPECT_EQ(sum, 226); // 226 : test case in JSArrayTest()
Djs_object_test.cpp434 int sum = 0; in HWTEST_F_L0() local
437sum += JSObject::GetProperty(thread, JSHandle<JSTaggedValue>(obj), key).GetValue()->GetInt(); in HWTEST_F_L0()
439 EXPECT_EQ(sum, 10); in HWTEST_F_L0()
/ark/js_runtime/ecmascript/compiler/
Dcircuit_ir_specification.md334 * **ADD**: returns the sum of its two integer operands.
360 * **FADD**: returns the sum of its two floating-point operands.