Home
last modified time | relevance | path

Searched refs:accum (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/compile/slang/tests/P_reduce_general_accumulator/
Dreduce_general_accumulator.rscript30 static void my_half_accum(half *accum, int val) { }
31 static void my_half_comb(half *accum, const half *other) { }
32 static void my_half_out(int *out, const half *accum) { }
35 static void my_half2_accum(half2 *accum, int val) { }
36 static void my_half2_comb(half2 *accum, const half2 *other) { }
37 static void my_half2_out(int *out, const half2 *accum) { }
40 static void my_half4_accum(half4 *accum, int val) { }
41 static void my_half4_comb(half4 *accum, const half4 *other) { }
42 static void my_half4_out(int *out, const half4 *accum) { }
46 static void my_array_half_accum(array_half *accum, int val) { }
[all …]
/frameworks/compile/slang/tests/P_reduce_general_result/
Dreduce_general_result.rscript14 static void my_half_accum(half *accum, half val) { }
15 static void my_half_comb(half *accum, const half *other) { }
18 static void my_half2_accum(half2 *accum, half2 val) { }
19 static void my_half2_comb(half2 *accum, const half2 *other) { }
22 static void my_half4_accum(half4 *accum, half4 val) { }
23 static void my_half4_comb(half4 *accum, const half4 *other) { }
27 static void my_array_half_accum(array_half *accum, half val) { }
28 static void my_array_half_comb(array_half *accum, const array_half *other) { }
32 static void my_array_half2_accum(array_half2 *accum, half2 val) { }
33 static void my_array_half2_comb(array_half2 *accum, const array_half2 *other) { }
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dreduce_backward.rscript29 static void aiAccum(int *accum, int val) { *accum += val; }
45 static void fMMInit(MinAndMax *accum) {
46 accum->min.val = posInf;
47 accum->min.idx = -1;
48 accum->max.val = negInf;
49 accum->max.idx = -1;
52 static void fMMAccumulator(MinAndMax *accum, float in, int x) {
57 if (me.val <= accum->min.val)
58 accum->min = me;
59 if (me.val >= accum->max.val)
[all …]
Dreduce.rscript37 static void aiAccum(int *accum, int val) { *accum += val; }
60 static void fMinAbsNaNInit(float *accum) {
61 *accum = nan(0);
64 static void fMinAbsNaNAccumulator(float *accum, float val) {
65 if (IsNaN(*accum) || (fabs(val) < fabs(*accum)))
66 *accum = val;
69 static void fMinAbsNaNCombiner(float *accum, const float *other) {
71 fMinAbsNaNAccumulator(accum, *other);
93 static void fMinAbsBoolInit(FindMinAbsBoolAccumType *accum) {
94 accum->onlyInitialized = true;
[all …]
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dreduce_backward.rscript31 static void aiAccum(int *accum, int val) { *accum += val; }
47 static void fMMInit(MinAndMax *accum) {
48 accum->min.val = posInf;
49 accum->min.idx = -1;
50 accum->max.val = negInf;
51 accum->max.idx = -1;
54 static void fMMAccumulator(MinAndMax *accum, float in, int x) {
59 if (me.val <= accum->min.val)
60 accum->min = me;
61 if (me.val >= accum->max.val)
[all …]
Dreduce.rscript39 static void aiAccum(int *accum, int val) { *accum += val; }
62 static void fMinAbsNaNInit(float *accum) {
63 *accum = nan(0);
66 static void fMinAbsNaNAccumulator(float *accum, float val) {
67 if (IsNaN(*accum) || (fabs(val) < fabs(*accum)))
68 *accum = val;
71 static void fMinAbsNaNCombiner(float *accum, const float *other) {
73 fMinAbsNaNAccumulator(accum, *other);
95 static void fMinAbsBoolInit(FindMinAbsBoolAccumType *accum) {
96 accum->onlyInitialized = true;
[all …]
/frameworks/compile/slang/tests/P_reduce_general_inputs/
Dreduce_general_inputs.rscript15 static void combiner(int *accum, const int *other) { }
18 static void my_half_half_0_accum(int *accum, half a, half b) { }
21 static void my_half_half_1_accum(int *accum, half a, half b, rs_kernel_context context) { }
24 static void my_half_half2_0_accum(int *accum, half a, half2 b) { }
27 static void my_half_half2_1_accum(int *accum, half a, half2 b, rs_kernel_context context) { }
30 static void my_half_half4_0_accum(int *accum, half a, half4 b) { }
33 static void my_half_half4_1_accum(int *accum, half a, half4 b, rs_kernel_context context) { }
36 static void my_half_float_0_accum(int *accum, half a, float b) { }
39 static void my_half_float_1_accum(int *accum, half a, float b, rs_kernel_context context) { }
42 static void my_half_float2_0_accum(int *accum, half a, float2 b) { }
[all …]
/frameworks/compile/slang/tests/P_reduce_general_examples_explicit/
Dreduce_general_examples_explicit.rscript15 static void aiiInit(int *accum) { *accum = 0; } // unnecessary
17 static void aiiAccum(int *accum, int val) { *accum += val; }
24 static void aicAccum(int *accum, int val) { *accum += val; }
26 static void aicComb(int *accum, const int *other) { *accum += *other; } // unnecessary
33 static void aiicInit(int *accum) { *accum = 0; } // unnecessary
35 static void aiicAccum(int *accum, int val) { *accum += val; }
37 static void aiicComb(int *accum, const int *other) { *accum += *other; } // unnecessary
44 static void dpiInit(float *accum) { *accum = 0.0f; } // unnecessary
46 static void dpiAccum(float *accum, float in1, float in2) {
47 *accum += in1*in2;
[all …]
/frameworks/compile/slang/tests/P_reduce_general_input/
Dreduce_general_input.rscript15 static void combiner(int *accum, const int *other) { }
18 static void my_half_0_accum(int *accum, half in) { }
21 static void my_half_1_accum(int *accum, half in, rs_kernel_context context) { }
24 static void my_half_2_accum(int *accum, half in, uint x) { }
27 static void my_half_3_accum(int *accum, half in, rs_kernel_context context, uint x) { }
30 static void my_half_4_accum(int *accum, half in, uint y) { }
33 static void my_half_5_accum(int *accum, half in, rs_kernel_context context, uint y) { }
36 static void my_half_6_accum(int *accum, half in, uint x, uint y) { }
39 static void my_half_7_accum(int *accum, half in, rs_kernel_context context, uint x, uint y) { }
42 static void my_half_8_accum(int *accum, half in, uint z) { }
[all …]
/frameworks/compile/slang/tests/P_reduce_general_examples_backward/
Dreduce_general_examples_backward.rscript12 static void aiAccum(int *accum, int val) { *accum += val; }
19 static void mpyInit(int *accum) { *accum = 1; }
21 static void mpyAccum(int *accum, int val) { *accum *= val; }
28 static void dpAccum(float *accum, float in1, float in2) {
29 *accum += in1*in2;
33 static void dpSum(float *accum, const float *val) { *accum += *val; }
52 static void fMMInit(MinAndMax *accum) {
54 *accum = r;
57 static void fMMAccumulator(MinAndMax *accum, float in, int x) {
62 if (me.val < accum->min.val)
[all …]
/frameworks/compile/slang/tests/P_reduce_general_examples/
Dreduce_general_examples.rscript15 static void aiAccum(int *accum, int val) { *accum += val; }
22 static void mpyInit(int *accum) { *accum = 1; }
24 static void mpyAccum(int *accum, int val) { *accum *= val; }
31 static void dpAccum(float *accum, float in1, float in2) {
32 *accum += in1*in2;
36 static void dpSum(float *accum, const float *val) { *accum += *val; }
56 static void fMMInit(MinAndMax *accum) {
58 *accum = r;
61 static void fMMAccumulator(MinAndMax *accum, float in, int x) {
66 if (me.val < accum->min.val)
[all …]
/frameworks/compile/slang/tests/P_reduce_general_examples_halter/
Dreduce_general_examples_halter.rscript35 static void fz2Init(int2 *accum) { accum->x = accum->y = -1; }
37 static void fz2Accum(int2 *accum,
42 accum->x = x;
43 accum->y = y;
47 static void fz2Combine(int2 *accum, const int2 *accum2) {
48 if (accum2->x >= 0) *accum = *accum2;
52 static bool fz2Found(const int2 *accum) {
53 return accum->x >= 0;
/frameworks/av/media/module/codecs/amrnb/enc/src/
Dets_to_wmf.cpp174 UWord8 accum; in ets_to_wmf() local
220 accum = (UWord8) * (ptr_temp++) << 7; in ets_to_wmf()
221 accum |= (UWord8) * (ptr_temp++) << 6; in ets_to_wmf()
222 accum |= (UWord8) * (ptr_temp++) << 5; in ets_to_wmf()
223 accum |= (UWord8) * (ptr_temp++) << 4; in ets_to_wmf()
224 accum |= (UWord8) * (ptr_temp++) << 3; in ets_to_wmf()
225 accum |= (UWord8) * (ptr_temp++) << 2; in ets_to_wmf()
226 accum |= (UWord8) * (ptr_temp++) << 1; in ets_to_wmf()
227 accum |= (UWord8) * (ptr_temp++); in ets_to_wmf()
229 wmf_output_ptr[j++] = accum; in ets_to_wmf()
Dets_to_if2.cpp149 UWord8 accum; in ets_to_if2() local
208 accum = (UWord8) * (ptr_temp++); in ets_to_if2()
209 accum |= (UWord8) * (ptr_temp++) << 1; in ets_to_if2()
210 accum |= (UWord8) * (ptr_temp++) << 2; in ets_to_if2()
211 accum |= (UWord8) * (ptr_temp++) << 3; in ets_to_if2()
212 accum |= (UWord8) * (ptr_temp++) << 4; in ets_to_if2()
213 accum |= (UWord8) * (ptr_temp++) << 5; in ets_to_if2()
214 accum |= (UWord8) * (ptr_temp++) << 6; in ets_to_if2()
215 accum |= (UWord8) * (ptr_temp++) << 7; in ets_to_if2()
217 if2_output_ptr[j++] = accum; in ets_to_if2()
/frameworks/av/media/libaudioprocessing/
DAudioResamplerFirProcessNeon.h99 int32x4_t accum, accum2; in ProcessNeonIntrinsic() local
102 accum = vdupq_n_s32(0); in ProcessNeonIntrinsic()
135 accum = vmlal_s16(accum, vget_low_s16(posSamp), vget_high_s16(posCoef)); // reversed in ProcessNeonIntrinsic()
136 accum = vmlal_s16(accum, vget_high_s16(posSamp), vget_low_s16(posCoef)); // reversed in ProcessNeonIntrinsic()
137 accum = vmlal_s16(accum, vget_low_s16(negSamp), vget_low_s16(negCoef)); in ProcessNeonIntrinsic()
138 accum = vmlal_s16(accum, vget_high_s16(negSamp), vget_high_s16(negCoef)); in ProcessNeonIntrinsic()
149 accum = vmlal_s16(accum, vget_low_s16(posSamp.val[0]), vget_high_s16(posCoef)); // r in ProcessNeonIntrinsic()
150 accum = vmlal_s16(accum, vget_high_s16(posSamp.val[0]), vget_low_s16(posCoef)); // r in ProcessNeonIntrinsic()
153 accum = vmlal_s16(accum, vget_low_s16(negSamp.val[0]), vget_low_s16(negCoef)); in ProcessNeonIntrinsic()
154 accum = vmlal_s16(accum, vget_high_s16(negSamp.val[0]), vget_high_s16(negCoef)); in ProcessNeonIntrinsic()
[all …]
/frameworks/compile/slang/tests/F_reduce_general_bad_function/
Dreduce_general_bad_function.rscript10 static void AccumInt(int *accum, int val) { }
42 static __attribute__((overloadable)) void init_over(int *accum) { }
46 static __attribute__((overloadable)) void init_dup(int *accum) { }
47 static __attribute__((overloadable)) void init_dup(unsigned int *accum) { }
54 void init_nonstatic(int *accum) { }
58 static int init_nonvoid(int *accum) { return 0; }
62 static void init_const(const int *accum) { }
66 static void init_valconst(int *const accum) { }
82 static void accum_noptr(int accum, int val) { }
86 static void avi_init(int *accum) { }
[all …]
/frameworks/base/core/tests/utiltests/src/android/util/
DTimeUtilsTest.java71 long accum = 900; in testFormatDuration() local
72 assertEquals("+900ms", TimeUtils.formatDuration(accum)); in testFormatDuration()
74 accum += 59 * SECOND_IN_MILLIS; in testFormatDuration()
75 assertEquals("+59s900ms", TimeUtils.formatDuration(accum)); in testFormatDuration()
77 accum += 59 * MINUTE_IN_MILLIS; in testFormatDuration()
78 assertEquals("+59m59s900ms", TimeUtils.formatDuration(accum)); in testFormatDuration()
80 accum += 23 * HOUR_IN_MILLIS; in testFormatDuration()
81 assertEquals("+23h59m59s900ms", TimeUtils.formatDuration(accum)); in testFormatDuration()
83 accum += 6 * DAY_IN_MILLIS; in testFormatDuration()
84 assertEquals("+6d23h59m59s900ms", TimeUtils.formatDuration(accum)); in testFormatDuration()
/frameworks/compile/slang/tests/F_reflection3264_reduce_extra32/
Dreflection3264_reduce_extra32.rscript4 static void accum(int *a, int v) { }
6 #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_extra64/
Dreflection3264_reduce_extra64.rscript4 static void accum(int *a, int v) { }
6 #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_reduce_general_bad_accumulator/
Dreduce_general_bad_accumulator.rscript3 #pragma rs java_package_name(accum)
14 static void AccumIntA(IntA *accum, int val) { }
15 static void CombIntA(IntA *accum, const IntA *val) { }
28 static void AccumStructIncomplete(struct Incomplete *accum, int val) { }
29 static void CombStructIncomplete(struct Incomplete *accum, const struct Incomplete *other) { }
43 static void AccumFn(Fn *accum, int val) { }
44 static void CombineFn(Fn *accum, const Fn *other) { }
55 static void AccumObj(rs_element *accum, int val) { }
56 static void CombineObj(rs_element *accum, const rs_element *other) { }
/frameworks/compile/slang/tests/F_reduce_general_bad_halter/
Dreduce_general_bad_halter.rscript10 static void AccumInt(int *accum, int val) { }
18 static void halt_void(const int *accum) { }
22 static int halt_int(const int *accum) { return 0; }
30 static bool halt2(const int *accum, const int *accum2) { return false; }
38 static bool hva_halt(const unsigned *accum) { return false; }
42 static __attribute__((overloadable)) bool halt_over(const int *accum) { return false; }
46 static __attribute__((overloadable)) bool halt_dup(const int *accum) { return false; }
47 static __attribute__((overloadable)) bool halt_dup(const unsigned int *accum) { return false; }
54 bool halt_nonstatic(const int *accum) { return false; }
58 static bool halt_const(int *accum) { return false; }
/frameworks/compile/libbcc/tests/libbcc/
Dtest_reduce_general_cleanup.ll52 define internal void @aiAccum(i32* nocapture %accum, i32 %val) #0 {
53 %1 = load i32, i32* %accum, align 4, !tbaa !22
55 store i32 %2, i32* %accum, align 4, !tbaa !22
60 define internal void @dpAccum(float* nocapture %accum, float %in1, float %in2) #0 {
62 %2 = load float, float* %accum, align 4, !tbaa !26
64 store float %3, float* %accum, align 4, !tbaa !26
69 define internal void @dpSum(float* nocapture %accum, float* nocapture %val) #0 {
71 %2 = load float, float* %accum, align 4, !tbaa !26
73 store float %3, float* %accum, align 4, !tbaa !26
78 define internal void @fMMInit(%struct.MinAndMax* nocapture %accum) #0 {
[all …]
Dtest_reduce_general_metadata.ll49 define internal void @aiAccum(i32* nocapture %accum, i32 %val) #0 {
50 %1 = load i32, i32* %accum, align 4, !tbaa !18
52 store i32 %2, i32* %accum, align 4, !tbaa !18
57 define internal void @mpyInit(i32* nocapture %accum) #0 {
58 store i32 1, i32* %accum, align 4, !tbaa !18
63 define internal void @mpyAccum(i32* nocapture %accum, i32 %val) #0 {
64 %1 = load i32, i32* %accum, align 4, !tbaa !18
66 store i32 %2, i32* %accum, align 4, !tbaa !18
71 define internal void @dpAccum(float* nocapture %accum, float %in1, float %in2) #0 {
73 %2 = load float, float* %accum, align 4, !tbaa !22
[all …]
/frameworks/compile/slang/tests/F_reduce_general_bad_result/
Dreduce_general_bad_result.rscript6 static void AccumInt(int *accum, int val) { }
22 static void AccumUInt2dA(UIntA916 *accum, int val) { }
23 static void CombUInt2dA(UIntA916 *accum, const UIntA916 *val) { }
54 static void AccumUnionShortDouble(union UnionShortDouble *accum, short s, double d) { }
55 static void CombineUnionShortDouble(union UnionShortDouble *accum,
61 static void AccumUnionCharInt(union UnionCharInt *accum, short s, double d) { }
62 static void CombineUnionCharInt(union UnionCharInt *accum, const union UnionCharInt *other) { }
93 static void AccumUnionIntFloatArray(UnionIntFloatArray *accum, int val) { }
94 static void CombineUnionIntFloatArray(UnionIntFloatArray *accum,
100 static void AccumUnionDoubleFloatArray(UnionDoubleFloatArray *accum, short s, double d) { }
[all …]
/frameworks/compile/slang/tests/P_reduce_general_reflect/
Dreduce_general_reflect.rscript12 static void d1_accum(float *accum, float val) { }
16 static void d2_accum(double *accum, double val) { }
24 static void a3_accum(IntA3 *accum, int val) { }
25 static void a3_comb(IntA3 *accum, const IntA3 *other) { }
29 static void a7_accum(IntA7 *accum, int val) { }
30 static void a7_comb(IntA7 *accum, const IntA7 *other) { }

123