Home
last modified time | relevance | path

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

12

/art/test/661-checker-simd-reduc/src/
DMain.java32 byte sum = 0; in reductionByte()
34 sum += x[i]; in reductionByte()
36 return sum; in reductionByte()
40 short sum = 0; in reductionShort() local
42 sum += x[i]; in reductionShort()
44 return sum; in reductionShort()
48 char sum = 0; in reductionChar() local
50 sum += x[i]; in reductionChar()
52 return sum; in reductionChar()
117 int sum = 0; in reductionInt() local
[all …]
/art/benchmark/stringbuilder-append/src/
DStringBuilderAppendBenchmark.java31 int sum = 0; in timeAppendStrings() local
34 sum += result.length(); // Make sure the append is not optimized away. in timeAppendStrings()
36 if (sum != count * (s1.length() + s2.length())) { in timeAppendStrings()
44 int sum = 0; in timeAppendLongStrings() local
47 sum += result.length(); // Make sure the append is not optimized away. in timeAppendLongStrings()
49 if (sum != count * (s1.length() + s2.length())) { in timeAppendLongStrings()
57 int sum = 0; in timeAppendStringAndInt() local
60 sum += result.length(); // Make sure the append is not optimized away. in timeAppendStringAndInt()
62 if (sum != count * (s1.length() + Integer.toString(i1).length())) { in timeAppendStringAndInt()
70 int sum = 0; in timeAppendStringAndDouble() local
[all …]
/art/benchmark/type-check/src/
DTypeCheckBenchmark.java54 int sum = 0; in timeInstanceOfLevel1ToLevel1() local
58 ++sum; in timeInstanceOfLevel1ToLevel1()
61 result = sum; in timeInstanceOfLevel1ToLevel1()
65 int sum = 0; in timeInstanceOfLevel2ToLevel1() local
69 ++sum; in timeInstanceOfLevel2ToLevel1()
72 result = sum; in timeInstanceOfLevel2ToLevel1()
76 int sum = 0; in timeInstanceOfLevel3ToLevel1() local
80 ++sum; in timeInstanceOfLevel3ToLevel1()
83 result = sum; in timeInstanceOfLevel3ToLevel1()
87 int sum = 0; in timeInstanceOfLevel9ToLevel1() local
[all …]
/art/test/StaticLeafMethods/
DStaticLeafMethods.java26 static int sum(int a, int b) { in sum() method in StaticLeafMethods
29 static int sum(int a, int b, int c) { in sum() method in StaticLeafMethods
32 static int sum(int a, int b, int c, int d) { in sum() method in StaticLeafMethods
35 static int sum(int a, int b, int c, int d, int e) { in sum() method in StaticLeafMethods
41 static double sum(double a, double b) { in sum() method in StaticLeafMethods
44 static double sum(double a, double b, double c) { in sum() method in StaticLeafMethods
47 static double sum(double a, double b, double c, double d) { in sum() method in StaticLeafMethods
50 static double sum(double a, double b, double c, double d, double e) { in sum() method in StaticLeafMethods
/art/test/NonStaticLeafMethods/
DNonStaticLeafMethods.java28 int sum(int a, int b) { in sum() method in NonStaticLeafMethods
31 int sum(int a, int b, int c) { in sum() method in NonStaticLeafMethods
34 int sum(int a, int b, int c, int d) { in sum() method in NonStaticLeafMethods
37 int sum(int a, int b, int c, int d, int e) { in sum() method in NonStaticLeafMethods
43 double sum(double a, double b) { in sum() method in NonStaticLeafMethods
46 double sum(double a, double b, double c) { in sum() method in NonStaticLeafMethods
49 double sum(double a, double b, double c, double d) { in sum() method in NonStaticLeafMethods
52 double sum(double a, double b, double c, double d, double e) { in sum() method in NonStaticLeafMethods
/art/test/661-checker-simd-cf-loops/src/
DMain.java361 int sum = 0; in $compile$noinline$Reduction() local
365 sum += val + x[i]; in $compile$noinline$Reduction()
368 return sum; in $compile$noinline$Reduction()
380 int sum = 0; in $compile$noinline$ReductionBackEdge() local
386 sum += x[i]; in $compile$noinline$ReductionBackEdge()
388 return sum; in $compile$noinline$ReductionBackEdge()
658 byte sum = 0; in BooleanArraySum()
660 sum += a[i] ? 1 : 0; in BooleanArraySum()
662 return sum; in BooleanArraySum()
666 byte sum = 0; in ByteArraySum()
[all …]
/art/test/684-checker-simd-dotprod/src/other/
DTestFloatDouble.java30 float sum = 0; in testDotProdSimpleFloat() local
32 sum += a[i] * b[i]; in testDotProdSimpleFloat()
34 return sum; in testDotProdSimpleFloat()
42 double sum = 0; in testDotProdSimpleDouble() local
44 sum += a[i] * b[i]; in testDotProdSimpleDouble()
46 return sum; in testDotProdSimpleDouble()
/art/test/083-compiler-regressions/src/
DMain.java176 long sum = foo.wideGetBar0(); in wideGetterSetterTest() local
177 sum += foo.wideGetBar1(1); in wideGetterSetterTest()
178 foo.wideSetBar1(sum); in wideGetterSetterTest()
179 sum += foo.wideGetBar2(1,2); in wideGetterSetterTest()
180 foo.wideSetBar2(0,sum); in wideGetterSetterTest()
181 sum += foo.wideGetBar3(1,2,3); in wideGetterSetterTest()
182 foo.wideSetBar3(0,0,sum); in wideGetterSetterTest()
183 sum += foo.wideGetBar4(1,2,3,4); in wideGetterSetterTest()
184 foo.wideSetBar4(0,0,0,sum); in wideGetterSetterTest()
185 sum += foo.wideGetBar5(1,2,3,4,5); in wideGetterSetterTest()
[all …]
/art/test/616-cha/src/
DMain.java145 long sum = 0; in testNoOverrideLoop() local
147 sum += calcValue(sArray[0]); in testNoOverrideLoop()
148 sum += calcValue(sArray[1]); in testNoOverrideLoop()
149 sum += calcValue(sArray[2]); in testNoOverrideLoop()
151 return sum; in testNoOverrideLoop()
159 long sum = 0; in testNoOverride() local
168 sum = testNoOverrideLoop(100000); in testNoOverride()
170 if (sum != 27300000L) { in testNoOverride()
/art/test/2030-long-running-child/src/
DMain.java37 int sum = 0; in run() local
40 sum += a[j][16] /* = 0 */ + a[j][17] /* = 1 */; in run()
42 if (sum != 10) { in run()
43 System.out.println("Bad result! Was " + sum); in run()
/art/test/081-hot-exceptions/src/
DMain.java28 int sum = 0; in main() local
34 sum += arrayObj2.getArrayElement(i); in main()
39 System.out.println("sum = " + sum); in main()
/art/test/090-loop-formation/src/
DMain.java62 int sum = 0; in deeplyNested() local
71 sum++; in deeplyNested()
80 System.out.println(sum); in deeplyNested()
/art/test/527-checker-array-access-simd/src/
DMain.java406 int sum = 0; in calcArraySum() local
408 sum += a[i] + b[i] + (int) c[i]; in calcArraySum()
410 return sum; in calcArraySum()
/art/libartbase/base/
Dscoped_arena_allocator.cc111 size_t sum = 0; in ApproximatePeakBytes() local
113 sum += arena->bytes_allocated_; in ApproximatePeakBytes()
115 return sum; in ApproximatePeakBytes()
185 size_t sum = 0; in ApproximatePeakBytes() local
188 sum += static_cast<size_t>(arena_stack_->top_ptr_ - arena->Begin()); in ApproximatePeakBytes()
191 sum += arena->bytes_allocated_; in ApproximatePeakBytes()
194 return sum - subtract; in ApproximatePeakBytes()
Dstats.h43 double sum = 0.0; in SumChildrenValues() local
45 sum += it.second.Value(); in SumChildrenValues()
47 return sum; in SumChildrenValues()
/art/test/550-checker-multiply-accumulate/src/
DMain.java505 int sum = 0; in calcArraySum() local
507 sum += array[i]; in calcArraySum()
509 return sum; in calcArraySum()
513 long sum = 0; in calcArraySumLong() local
515 sum += array[i]; in calcArraySumLong()
517 return sum; in calcArraySumLong()
/art/test/449-checker-bce/src/
DMain.java1211 int sum; field in Main
1249 sum += array[i]; in foo1()
1289 sum += array[i]; in foo2()
1329 sum += array[i]; in foo3()
1370 sum += array[i - 1]; in foo4()
1421 sum += array[i - 1]; in foo5()
1422 sum += array[i]; in foo5()
1423 sum += array[i + 1]; in foo5()
1513 sum += array[i + 1000]; in foo7()
1515 sum += array[i]; in foo7()
[all …]
/art/test/455-checker-gvn/src/
DMain.java121 int sum = 0; in $noinline$deoptimizeArray() local
123 sum += arr[i]; in $noinline$deoptimizeArray()
125 return sum; in $noinline$deoptimizeArray()
/art/test/618-checker-induction/src/
DMain.java591 int sum = 0; in getSum21() local
594 sum += k; in getSum21()
596 return sum; in getSum21()
605 int sum = 0; in getIncr2() local
607 sum += arr[i]; in getIncr2()
609 return sum; in getIncr2()
712 int sum = 0; in getSumN() local
715 sum += k; in getSumN()
717 return sum; in getSumN()
1094 long sum = 0; in closedLinearInductionUnmatchedTypesNotOptimized() local
[all …]
/art/test/536-checker-intrinsic-optimization/src/
DMain.java303 int sum = 0; in $opt$noinline$stringSumChars() local
306 sum += s.charAt(i); in $opt$noinline$stringSumChars()
308 return sum; in $opt$noinline$stringSumChars()
326 int sum = 0; in $opt$noinline$stringSumLeadingChars() local
328 sum += s.charAt(i); in $opt$noinline$stringSumLeadingChars()
330 return sum; in $opt$noinline$stringSumLeadingChars()
357 int sum = s.charAt(0) + s.charAt(1) + s.charAt(2) + s.charAt(3); in $opt$noinline$stringSum4LeadingChars() local
358 return sum; in $opt$noinline$stringSum4LeadingChars()
/art/runtime/
Dclass_table.cc81 size_t sum = 0; in NumZygoteClasses() local
83 sum += CountDefiningLoaderClasses(defining_loader, classes_[i]); in NumZygoteClasses()
85 return sum; in NumZygoteClasses()
95 size_t sum = 0; in NumReferencedZygoteClasses() local
97 sum += classes_[i].size(); in NumReferencedZygoteClasses()
99 return sum; in NumReferencedZygoteClasses()
/art/test/445-checker-licm/src/
DMain.java129 int sum = 0; in clinitCheck() local
131 sum += ValueHolder.getValue(); in clinitCheck()
134 return sum; in clinitCheck()
/art/test/708-jit-cache-churn/src/
DJitCacheChurnTest.java124 int sum = 0; in $noinline$Call() local
126 sum = i * (i + 1); in $noinline$Call()
128 return sum; in $noinline$Call()
135 int sum = 0; in $noinline$Call() local
143 sum += bits; in $noinline$Call()
145 return sum; in $noinline$Call()
/art/test/655-checker-simd-arm-opt/src/
DMain.java129 int sum = 0; in sumArray() local
131 sum += b[i] + s[i] + c[i] + a[i] + l[i] + f[i] + d[i]; in sumArray()
133 return sum; in sumArray()
/art/test/530-checker-lse/src/
DMain.java388 int sum = 0; in test11() local
390 sum += obj.i; in test11()
392 return sum; in test11()
408 int sum = 0; in test12() local
410 sum += obj1.i; in test12()
411 obj2.i = sum; in test12()
413 return sum; in test12()
606 int sum = 0; in test22() local
612 sum += obj2.i; in test22()
616 sum += obj1.i + obj3.i; in test22()
[all …]

12