/frameworks/compile/slang/tests/P_reduce_general_accumulator/ |
D | reduce_general_accumulator.rscript | 30 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/ |
D | reduce_general_result.rscript | 14 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/compile/slang/tests/P_reduce_general_inputs/ |
D | reduce_general_inputs.rscript | 15 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/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | reduce_backward.rscript | 29 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 …]
|
D | reduce.rscript | 37 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/ |
D | reduce_backward.rscript | 31 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 …]
|
D | reduce.rscript | 39 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_input/ |
D | reduce_general_input.rscript | 15 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_explicit/ |
D | reduce_general_examples_explicit.rscript | 15 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_examples/ |
D | reduce_general_examples.rscript | 15 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_backward/ |
D | reduce_general_examples_backward.rscript | 12 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/native/opengl/libagl/ |
D | matrix.h | 177 int32_t accum; in mla3a16() 180 accum = int64_t(a0)*int16_t(b0) >> 16; in mla3a16() 181 accum += int64_t(a1)*int16_t(b1) >> 16; in mla3a16() 182 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16() 183 accum = (accum << shift) + c; in mla3a16() 184 return accum; in mla3a16() 218 int32_t accum; in mla3a16_btb() 222 accum = int64_t(a0)*int16_t(b0) >> 16; in mla3a16_btb() 223 accum += int64_t(a1)*int16_t(b1) >> 16; in mla3a16_btb() 224 accum += int64_t(a2)*int16_t(b2) >> 16; in mla3a16_btb() [all …]
|
/frameworks/compile/slang/tests/P_reduce_general_examples_halter/ |
D | reduce_general_examples_halter.rscript | 35 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/libaudioprocessing/ |
D | AudioResamplerFirProcessNeon.h | 99 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/ |
D | reduce_general_bad_function.rscript | 10 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/av/media/libstagefright/codecs/amrnb/enc/src/ |
D | ets_to_wmf.cpp | 174 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()
|
D | ets_to_if2.cpp | 149 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/rs/tests/lldb/java/Reduction/src/com/android/rs/lldbreductiontest/ |
D | reduce_common.rsh | 37 static void find_min_user_type_accum(user_t *accum, const user_t val) { 38 if (val.a + val.b * multiplier < accum->a + accum->b * multiplier) { 39 accum->a = val.a; 40 accum->b = val.b; 49 static void find_min_user_type_comb(user_t *accum, const user_t *val) { 50 if (val->a + val->b * multiplier < accum->a + accum->b * multiplier) { 51 accum->a = val->a; 52 accum->b = val->b;
|
/frameworks/compile/libbcc/tests/libbcc/ |
D | test_reduce_general_cleanup.ll | 52 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 …]
|
D | test_reduce_general_metadata.ll | 49 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/ |
D | reduce_general_bad_result.rscript | 6 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/F_reduce_general_bad_halter/ |
D | reduce_general_bad_halter.rscript | 10 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/slang/tests/F_reduce_general_bad_accumulator/ |
D | reduce_general_bad_accumulator.rscript | 3 #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_reflection3264_reduce_extra64/ |
D | reflection3264_reduce_extra64.rscript | 4 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_extra32/ |
D | reflection3264_reduce_extra32.rscript | 4 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)
|