Home
last modified time | relevance | path

Searched refs:accumulator (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/compile/slang/tests/F_reduce_general_bad_function/
Dreduce_general_bad_function.rscript7 // Also see reduce_general_bad_accumulator.rs for accumulator data type checks.
9 // trivial accumulator for use multiple times later
17 #pragma rs reduce(init0) initializer(init0) accumulator(AccumInt)
21 #pragma rs reduce(init2) initializer(init2) accumulator(AccumInt)
25 #pragma rs reduce(init_special1) initializer(init_special1) accumulator(AccumInt)
29 #pragma rs reduce(init2_special1) initializer(init2_special1) accumulator(AccumInt)
33 #pragma rs reduce(init2_special0) initializer(init2_special0) accumulator(AccumInt)
37 #pragma rs reduce(init_noptr) initializer(init_noptr) accumulator(AccumInt)
41 #pragma rs reduce(init_over) initializer(init_over) accumulator(AccumInt)
45 #pragma rs reduce(init_dup) initializer(init_dup) accumulator(AccumInt)
[all …]
Dstderr.txt.expect12 reduce_general_bad_function.rscript:74:13: error: accumulator accum0() for '#pragma rs reduce(accum…
13 reduce_general_bad_function.rscript:78:13: error: accumulator accum1() for '#pragma rs reduce(accum…
14 reduce_general_bad_function.rscript:82:13: error: accumulator accum_noptr() for '#pragma rs reduce(…
15 reduce_general_bad_function.rscript:87:13: error: accumulator avi_accum() for '#pragma rs reduce(ac…
16 reduce_general_bad_function.rscript:91:13: error: accumulator accum_special() for '#pragma rs reduc…
17 reduce_general_bad_function.rscript:95:41: error: accumulator accum_ptr() for '#pragma rs reduce(ac…
18 reduce_general_bad_function.rscript:101:45: error: accumulator accum_arr() for '#pragma rs reduce(a…
19 reduce_general_bad_function.rscript:106:55: error: accumulator accum_obj() for '#pragma rs reduce(a…
20 reduce_general_bad_function.rscript:114:12: error: duplicate function definition for 'accumulator(a…
21 …unction.rscript:119:12: error: could not find function definition for 'accumulator(accum_missing)'…
[all …]
/frameworks/compile/slang/tests/P_reduce_general_inputs/
Dreduce_general_inputs.rscript17 #pragma rs reduce(my_half_half_0) accumulator(my_half_half_0_accum) combiner(combiner)
20 #pragma rs reduce(my_half_half_1) accumulator(my_half_half_1_accum) combiner(combiner)
23 #pragma rs reduce(my_half_half2_0) accumulator(my_half_half2_0_accum) combiner(combiner)
26 #pragma rs reduce(my_half_half2_1) accumulator(my_half_half2_1_accum) combiner(combiner)
29 #pragma rs reduce(my_half_half4_0) accumulator(my_half_half4_0_accum) combiner(combiner)
32 #pragma rs reduce(my_half_half4_1) accumulator(my_half_half4_1_accum) combiner(combiner)
35 #pragma rs reduce(my_half_float_0) accumulator(my_half_float_0_accum) combiner(combiner)
38 #pragma rs reduce(my_half_float_1) accumulator(my_half_float_1_accum) combiner(combiner)
41 #pragma rs reduce(my_half_float2_0) accumulator(my_half_float2_0_accum) combiner(combiner)
44 #pragma rs reduce(my_half_float2_1) accumulator(my_half_float2_1_accum) combiner(combiner)
[all …]
/frameworks/compile/slang/tests/P_reduce_general_input/
Dreduce_general_input.rscript17 #pragma rs reduce(my_half_0) accumulator(my_half_0_accum) combiner(combiner)
20 #pragma rs reduce(my_half_1) accumulator(my_half_1_accum) combiner(combiner)
23 #pragma rs reduce(my_half_2) accumulator(my_half_2_accum) combiner(combiner)
26 #pragma rs reduce(my_half_3) accumulator(my_half_3_accum) combiner(combiner)
29 #pragma rs reduce(my_half_4) accumulator(my_half_4_accum) combiner(combiner)
32 #pragma rs reduce(my_half_5) accumulator(my_half_5_accum) combiner(combiner)
35 #pragma rs reduce(my_half_6) accumulator(my_half_6_accum) combiner(combiner)
38 #pragma rs reduce(my_half_7) accumulator(my_half_7_accum) combiner(combiner)
41 #pragma rs reduce(my_half_8) accumulator(my_half_8_accum) combiner(combiner)
44 #pragma rs reduce(my_half_9) accumulator(my_half_9_accum) combiner(combiner)
[all …]
/frameworks/compile/slang/tests/F_reduce_general_bad_result/
Dreduce_general_bad_result.rscript5 // trivial accumulator for use multiple times later
12 // NOTE: accumulator data type is restricted in certain ways regardless
21 #pragma rs reduce(redUInt2dA) accumulator(AccumUInt2dA) combiner(CombUInt2dA)
25 // problem is result type, not accumulator type, so outconverter can fix this
26 #pragma rs reduce(redUInt2dAOutFix) accumulator(AccumUInt2dA) combiner(CombUInt2dA) \
30 // problem is result type, not accumulator type, so outconverter can break this
31 #pragma rs reduce(redUInt2dAOutBreak) accumulator(AccumInt) outconverter(OutUInt2dABreak)
52 #pragma rs reduce(redUnionShortDouble) accumulator(AccumUnionShortDouble) \
58 // problem is result type, not accumulator type, so outconverter can fix this
59 #pragma rs reduce(redUnionCharIntOutFix) accumulator(AccumUnionCharInt) \
[all …]
/frameworks/compile/slang/tests/P_reduce_general_result/
Dreduce_general_result.rscript13 #pragma rs reduce(my_half) accumulator(my_half_accum) combiner(my_half_comb)
17 #pragma rs reduce(my_half2) accumulator(my_half2_accum) combiner(my_half2_comb)
21 #pragma rs reduce(my_half4) accumulator(my_half4_accum) combiner(my_half4_comb)
25 #pragma rs reduce(my_array_half) accumulator(my_array_half_accum) combiner(my_array_half_comb)
30 #pragma rs reduce(my_array_half2) accumulator(my_array_half2_accum) combiner(my_array_half2_comb)
35 #pragma rs reduce(my_array_half4) accumulator(my_array_half4_accum) combiner(my_array_half4_comb)
40 #pragma rs reduce(my_float) accumulator(my_float_accum) combiner(my_float_comb)
44 #pragma rs reduce(my_float2) accumulator(my_float2_accum) combiner(my_float2_comb)
48 #pragma rs reduce(my_float4) accumulator(my_float4_accum) combiner(my_float4_comb)
52 #pragma rs reduce(my_array_float) accumulator(my_array_float_accum) combiner(my_array_float_comb)
[all …]
/frameworks/compile/slang/tests/F_reduce_general_bad_accumulator/
Dreduce_general_bad_accumulator.rscript5 // Several checks for bad accumulator DATA TYPE (not bad accumulator FUNCTION)
8 // accumulator cannot be incomplete array
13 #pragma rs reduce(redIntA) accumulator(AccumIntA) combiner(CombIntA)
18 #pragma rs reduce(redIntAOut) accumulator(AccumIntA) combiner(CombIntA) outconverter(OutIntA)
22 // accumulator cannot be incomplete struct
27 #pragma rs reduce(redStructIncomplete) accumulator(AccumStructIncomplete) combiner(CombStructIncomp…
32 #pragma rs reduce(redStructIncompleteOut) accumulator(AccumStructIncomplete) combiner(CombStructInc…
37 // accumulator cannot be function
42 #pragma rs reduce(redFn) accumulator(AccumFn) combiner(CombineFn)
47 #pragma rs reduce(redFnOut) accumulator(AccumFn) combiner(CombineFn) outconverter(OutFn)
[all …]
Dstderr.txt.expect3 reduce_general_bad_accumulator.rscript:14:13: error: accumulator AccumIntA() for '#pragma rs reduce…
4 reduce_general_bad_accumulator.rscript:14:13: error: accumulator AccumIntA() for '#pragma rs reduce…
5 reduce_general_bad_accumulator.rscript:28:13: error: accumulator AccumStructIncomplete() for '#prag…
6 reduce_general_bad_accumulator.rscript:28:13: error: accumulator AccumStructIncomplete() for '#prag…
7 reduce_general_bad_accumulator.rscript:43:13: error: accumulator AccumFn() for '#pragma rs reduce(r…
9 reduce_general_bad_accumulator.rscript:43:13: error: accumulator AccumFn() for '#pragma rs reduce(r…
12 reduce_general_bad_accumulator.rscript:55:13: error: accumulator AccumObj() for '#pragma rs reduce(…
13 reduce_general_bad_accumulator.rscript:55:13: error: accumulator AccumObj() for '#pragma rs reduce(…
/frameworks/av/media/libnbaio/
DNBAIO.cpp77 size_t accumulator = 0; in writeVia() local
78 while (accumulator < total) { in writeVia()
79 size_t count = total - accumulator; in writeVia()
90 accumulator += ret; in writeVia()
94 return accumulator > 0 ? accumulator : ret; in writeVia()
96 return accumulator; in writeVia()
113 size_t accumulator = 0; in readVia() local
114 while (accumulator < total) { in readVia()
115 size_t count = total - accumulator; in readVia()
126 accumulator += ret; in readVia()
[all …]
DAudioBufferProviderSource.cpp90 for (size_t accumulator = 0; ; ) { in readVia() local
91 ALOG_ASSERT(accumulator <= total); in readVia()
92 size_t count = total - accumulator; in readVia()
94 return accumulator; in readVia()
113 return accumulator > 0 ? accumulator : (ssize_t) status; in readVia()
123 if (CC_LIKELY(accumulator > 0)) { in readVia()
124 return accumulator; in readVia()
130 accumulator += ret; in readVia()
/frameworks/compile/slang/tests/F_reduce_general_bad_halter/
Dreduce_general_bad_halter.rscript7 // Also see reduce_general_bad_accumulator.rs for accumulator data type checks.
9 // trivial accumulator for use multiple times later
17 #pragma rs reduce(halt_void) accumulator(AccumInt) halter(halt_void)
21 #pragma rs reduce(halt_int) accumulator(AccumInt) halter(halt_int)
25 #pragma rs reduce(halt0) accumulator(AccumInt) halter(halt0)
29 #pragma rs reduce(halt2) accumulator(AccumInt) halter(halt2)
33 #pragma rs reduce(halt_special) accumulator(AccumInt) halter(halt_special)
36 // halter and accumulator must take pointers to same type
37 #pragma rs reduce(halt_vs_accum) accumulator(AccumInt) halter(hva_halt)
41 #pragma rs reduce(halt_over) accumulator(AccumInt) halter(halt_over)
[all …]
/frameworks/compile/slang/tests/P_reduce_general_accumulator/
Dreduce_general_accumulator.rscript3 #pragma rs java_package_name(accumulator)
5 // This test case was created by ./gen-accumulator.pl.
6 // It exercises various legal accumulator types, so that we can ensure
29 #pragma rs reduce(my_half) accumulator(my_half_accum) combiner(my_half_comb) outconverter(my_half_o…
34 #pragma rs reduce(my_half2) accumulator(my_half2_accum) combiner(my_half2_comb) outconverter(my_hal…
39 #pragma rs reduce(my_half4) accumulator(my_half4_accum) combiner(my_half4_comb) outconverter(my_hal…
44 #pragma rs reduce(my_array_half) accumulator(my_array_half_accum) combiner(my_array_half_comb) outc…
50 #pragma rs reduce(my_array_half2) accumulator(my_array_half2_accum) combiner(my_array_half2_comb) o…
56 #pragma rs reduce(my_array_half4) accumulator(my_array_half4_accum) combiner(my_array_half4_comb) o…
62 #pragma rs reduce(my_float) accumulator(my_float_accum) combiner(my_float_comb) outconverter(my_flo…
[all …]
/frameworks/compile/slang/tests/F_reduce_general_parse/
Dreduce_general_parse.rscript14 #pragma rs reduce(foo) initializer(init) accumulator(accum)
15 #pragma rs reduce(foo) initializer(init2) accumulator(accum2)
16 #pragma rs reduce(bar) accumulator(baccum) initializer(binit)
17 #pragma rs reduce(baz) accumulator(baccum) initializer(binit) accumulator(baccum)
18 #pragma rs reduce(baz) accumulator(baccum) initializer(binit) accumulator(baccum2)
20 #pragma rs reduce(goo) initializer(gi) accumulator(ga) (
Dstderr.txt.expect7 reduce_general_parse.rscript:11:12: error: missing 'accumulator' for '#pragma rs reduce'
9 reduce_general_parse.rscript:13:12: error: missing 'accumulator' for '#pragma rs reduce'
11 reduce_general_parse.rscript:17:63: error: more than one 'accumulator' for '#pragma rs reduce'
12 reduce_general_parse.rscript:18:63: error: more than one 'accumulator' for '#pragma rs reduce'
13 …ething' for '#pragma reduce'; expected one of the following keywords: 'accumulator', 'combiner', '…
/frameworks/base/tests/GamePerformance/src/android/gameperformance/
DCPULoadThread.java29 double accumulator = 0; in computePi() local
33 accumulator += ((1.0 / (2.0 * index - 1)) - (1.0 / (2.0 * index + 1))); in computePi()
34 if (accumulator == prevAccumulator) { in computePi()
37 prevAccumulator = accumulator; in computePi()
40 return 4 * accumulator; in computePi()
/frameworks/compile/slang/tests/F_reflection3264_reduce_extra64/
Dreflection3264_reduce_extra64.rscript6 #pragma rs reduce(aa) accumulator(accum)
7 #pragma rs reduce(bb) accumulator(accum)
10 #pragma rs reduce(cc) accumulator(accum)
11 #pragma rs reduce(dd) accumulator(accum)
/frameworks/compile/slang/tests/F_reflection3264_reduce_extra32/
Dreflection3264_reduce_extra32.rscript6 #pragma rs reduce(aa) accumulator(accum)
7 #pragma rs reduce(bb) accumulator(accum)
10 #pragma rs reduce(cc) accumulator(accum)
11 #pragma rs reduce(dd) accumulator(accum)
/frameworks/compile/slang/tests/F_reflection3264_reduce_mismatch/
Dreflection3264_reduce_mismatch.rscript6 // accumulator types need not match; function names need not match
8 #pragma rs reduce(aa) accumulator(aaAccum) combiner(aaCombAlpha) outconverter(aaOut)
10 #pragma rs reduce(aa) accumulator(aaAccum) combiner(aaCombBeta) outconverter(aaOut)
24 #pragma rs reduce(bb) accumulator(bbAccum) combiner(bbComb) outconverter(bbOut)
27 #pragma rs reduce(bb) accumulator(bbAccum) combiner(bbComb)
37 #pragma rs reduce(cc) accumulator(ccAccum) combiner(ccComb) outconverter(ccOut)
43 #pragma rs reduce(dd) accumulator(ddAccum) combiner(ddComb)
52 #pragma rs reduce(ee) accumulator(eeAccum) combiner(eeComb) outconverter(eeOut)
53 #pragma rs reduce(ff) accumulator(ffAccum) combiner(ffComb) outconverter(ffOut)
54 #pragma rs reduce(gg) accumulator(ggAccum) outconverter(ggOut)
/frameworks/compile/slang/tests/F_reduce_general_void/
Dreduce_general_void.rscript5 // void is not a suitable accumulator data type or result type; and
8 // accumulator must not be void
9 #pragma rs reduce(voidA) initializer(voidA_init) accumulator(voidA_accum) combiner(voidA_comb)
15 #pragma rs reduce(voidI) accumulator(voidI_accum) combiner(voidI_comb)
20 #pragma rs reduce(voidO) accumulator(voidO_accum) outconverter(voidO_out)
/frameworks/compile/slang/tests/P_reduce_general_reflect/
Dreduce_general_reflect.rscript11 #pragma rs reduce(d1) accumulator(d1_accum) outconverter(d1_out)
15 #pragma rs reduce(d2) accumulator(d2_accum)
22 #pragma rs reduce(a3) accumulator(a3_accum) combiner(a3_comb)
27 #pragma rs reduce(a7) accumulator(a7_accum) combiner(a7_comb)
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dreduce.rscript37 accumulator(aiAccum)
50 // for and handle an accumulator with this distinguished value.
60 initializer(fMinAbsNaNInit) accumulator(fMinAbsNaNAccumulator) combiner(fMinAbsNaNCombiner)
78 // The kernel findMinAbsBool represents its accumulator as a struct
80 // accumulator has the distinguished initial value, and a float field
85 // set to false by accumulator function
92 initializer(fMinAbsBoolInit) accumulator(fMinAbsBoolAccumulator) combiner(fMinAbsBoolCombiner) \
117 initializer(fMMInit) accumulator(fMMAccumulator) \
165 accumulator(fzAccum) combiner(fzCombine)
182 accumulator(fz2Accum) combiner(fz2Combine)
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dreduce.rscript35 accumulator(aiAccum)
48 // for and handle an accumulator with this distinguished value.
58 initializer(fMinAbsNaNInit) accumulator(fMinAbsNaNAccumulator) combiner(fMinAbsNaNCombiner)
76 // The kernel findMinAbsBool represents its accumulator as a struct
78 // accumulator has the distinguished initial value, and a float field
83 // set to false by accumulator function
90 initializer(fMinAbsBoolInit) accumulator(fMinAbsBoolAccumulator) combiner(fMinAbsBoolCombiner) \
115 initializer(fMMInit) accumulator(fMMAccumulator) \
163 accumulator(fzAccum) combiner(fzCombine)
180 accumulator(fz2Accum) combiner(fz2Combine)
[all …]
/frameworks/compile/slang/tests/F_reflection3264_reduce_mismatch_name_exp/
Dreflection3264_reduce_mismatch_name_exp.rscript7 #pragma rs reduce(a64) accumulator(accumBad)
9 #pragma rs reduce(a32) accumulator(accumBad)
15 #pragma rs reduce(b) accumulator(accumBad)
/frameworks/compile/slang/tests/P_reduce_general_examples/
Dreduce_general_examples.rscript13 accumulator(aiAccum)
20 initializer(mpyInit) accumulator(mpyAccum)
29 accumulator(dpAccum) combiner(dpSum)
41 initializer(fMMInit) accumulator(fMMAccumulator) \
88 accumulator(fzAccum) combiner(fzCombine)
105 accumulator(fz2Accum) combiner(fz2Combine)
126 accumulator(hsgAccum) combiner(hsgCombine)
139 accumulator(hsgAccum) combiner(hsgCombine) \
/frameworks/compile/slang/tests/P_reduce_general_examples_backward/
Dreduce_general_examples_backward.rscript15 accumulator(aiAccum)
24 initializer(mpyInit) accumulator(mpyAccum)
36 accumulator(dpAccum) combiner(dpSum)
81 initializer(fMMInit) accumulator(fMMAccumulator) \
99 accumulator(fzAccum) combiner(fzCombine)
121 accumulator(fz2Accum) combiner(fz2Combine)
136 accumulator(hsgAccum) combiner(hsgCombine)
147 accumulator(hsgAccum) combiner(hsgCombine) \

123