Home
last modified time | relevance | path

Searched refs:sum1 (Results 1 – 25 of 97) sorted by relevance

1234

/third_party/cmsis/CMSIS/DSP/Source/MatrixFunctions/
Darm_mat_mult_fast_q31.c76 q31_t sum1, sum2, sum3, sum4; /* Accumulator */ in arm_mat_mult_fast_q31() local
123 sum1 = 0; in arm_mat_mult_fast_q31()
147 sum1 = __SMMLA(inA1, inB1, sum1); in arm_mat_mult_fast_q31()
152 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) inA1 * inB1)) >> 32); in arm_mat_mult_fast_q31()
163 *px++ = sum1 << 1; in arm_mat_mult_fast_q31()
202 sum1 = 0; in arm_mat_mult_fast_q31()
213 sum1 = __SMMLA(*pInA++, *pInB, sum1); in arm_mat_mult_fast_q31()
215 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) *pInA++ * *pInB)) >> 32); in arm_mat_mult_fast_q31()
220 sum1 = __SMMLA(*pInA++, *pInB, sum1); in arm_mat_mult_fast_q31()
222 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) *pInA++ * *pInB)) >> 32); in arm_mat_mult_fast_q31()
[all …]
Darm_mat_vec_mult_q7.c309 q31_t sum1 = 0; in arm_mat_vec_mult_q7() local
335 sum1 = __SMLAD(matData, vecData, sum1); in arm_mat_vec_mult_q7()
336 sum1 = __SMLAD(matData2, vecData2, sum1); in arm_mat_vec_mult_q7()
363 sum1 += *pInA1++ * vecData; in arm_mat_vec_mult_q7()
371 *px++ = (q7_t)(__SSAT((sum1 >> 7), 8)); in arm_mat_vec_mult_q7()
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/
Dadler32.c148 unsigned long sum1; local
159 sum1 = adler1 & 0xffff;
160 sum2 = rem * sum1;
162 sum1 += (adler2 & 0xffff) + BASE - 1;
164 if (sum1 >= BASE) sum1 -= BASE;
165 if (sum1 >= BASE) sum1 -= BASE;
168 return sum1 | (sum2 << 16);
/third_party/zlib/
Dadler32.c148 unsigned long sum1; local
159 sum1 = adler1 & 0xffff;
160 sum2 = rem * sum1;
162 sum1 += (adler2 & 0xffff) + BASE - 1;
164 if (sum1 >= BASE) sum1 -= BASE;
165 if (sum1 >= BASE) sum1 -= BASE;
168 return sum1 | (sum2 << 16);
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/
Dadler32.c148 unsigned long sum1; local
159 sum1 = adler1 & 0xffff;
160 sum2 = rem * sum1;
162 sum1 += (adler2 & 0xffff) + BASE - 1;
164 if (sum1 >= BASE) sum1 -= BASE;
165 if (sum1 >= BASE) sum1 -= BASE;
168 return sum1 | (sum2 << 16);
/third_party/libwebsockets/win32port/zlib/
Dadler32.c136 unsigned long sum1; local
142 sum1 = adler1 & 0xffff;
143 sum2 = rem * sum1;
145 sum1 += (adler2 & 0xffff) + BASE - 1;
147 if (sum1 >= BASE) sum1 -= BASE;
148 if (sum1 >= BASE) sum1 -= BASE;
151 return sum1 | (sum2 << 16);
/third_party/skia/third_party/externals/zlib/
Dadler32.c176 unsigned long sum1; local
187 sum1 = adler1 & 0xffff;
188 sum2 = rem * sum1;
190 sum1 += (adler2 & 0xffff) + BASE - 1;
192 if (sum1 >= BASE) sum1 -= BASE;
193 if (sum1 >= BASE) sum1 -= BASE;
196 return sum1 | (sum2 << 16);
/third_party/node/deps/zlib/
Dadler32.c178 unsigned long sum1; local
189 sum1 = adler1 & 0xffff;
190 sum2 = rem * sum1;
192 sum1 += (adler2 & 0xffff) + BASE - 1;
194 if (sum1 >= BASE) sum1 -= BASE;
195 if (sum1 >= BASE) sum1 -= BASE;
198 return sum1 | (sum2 << 16);
/third_party/flutter/skia/third_party/externals/zlib/
Dadler32.c178 unsigned long sum1; local
189 sum1 = adler1 & 0xffff;
190 sum2 = rem * sum1;
192 sum1 += (adler2 & 0xffff) + BASE - 1;
194 if (sum1 >= BASE) sum1 -= BASE;
195 if (sum1 >= BASE) sum1 -= BASE;
198 return sum1 | (sum2 << 16);
/third_party/ffmpeg/tests/
Dtiny_ssim.c100 static float ssim_end4( int sum0[5][4], int sum1[5][4], int width ) in ssim_end4()
106 ssim += ssim_end1( sum0[i][0] + sum0[i+1][0] + sum1[i][0] + sum1[i+1][0], in ssim_end4()
107 sum0[i][1] + sum0[i+1][1] + sum1[i][1] + sum1[i+1][1], in ssim_end4()
108 sum0[i][2] + sum0[i+1][2] + sum1[i][2] + sum1[i+1][2], in ssim_end4()
109 sum0[i][3] + sum0[i+1][3] + sum1[i][3] + sum1[i+1][3] ); in ssim_end4()
122 int (*sum1)[4] = sum0 + (width >> 2) + 3; in ssim_plane() local
129 FFSWAP( void*, sum0, sum1 ); in ssim_plane()
134 ssim += ssim_end4( sum0+x, sum1+x, FFMIN(4,width-x-1) ); in ssim_plane()
/third_party/ffmpeg/libavfilter/
Dvf_ssim.c194 static float ssim_endn_16bit(const int64_t (*sum0)[4], const int64_t (*sum1)[4], int width, int max) in ssim_endn_16bit()
200 ssim += ssim_end1x(sum0[i][0] + sum0[i + 1][0] + sum1[i][0] + sum1[i + 1][0], in ssim_endn_16bit()
201 sum0[i][1] + sum0[i + 1][1] + sum1[i][1] + sum1[i + 1][1], in ssim_endn_16bit()
202 sum0[i][2] + sum0[i + 1][2] + sum1[i][2] + sum1[i + 1][2], in ssim_endn_16bit()
203 sum0[i][3] + sum0[i + 1][3] + sum1[i][3] + sum1[i + 1][3], in ssim_endn_16bit()
208 static double ssim_endn_8bit(const int (*sum0)[4], const int (*sum1)[4], int width) in ssim_endn_8bit()
214 ssim += ssim_end1(sum0[i][0] + sum0[i + 1][0] + sum1[i][0] + sum1[i + 1][0], in ssim_endn_8bit()
215 sum0[i][1] + sum0[i + 1][1] + sum1[i][1] + sum1[i + 1][1], in ssim_endn_8bit()
216 sum0[i][2] + sum0[i + 1][2] + sum1[i][2] + sum1[i + 1][2], in ssim_endn_8bit()
217 sum0[i][3] + sum0[i + 1][3] + sum1[i][3] + sum1[i + 1][3]); in ssim_endn_8bit()
[all …]
/third_party/mindspore/tests/ut/python/keep_order/
Dtest_keep_order.py71 sum1 = add(x, y)
73 init = F.depend(init, sum1)
76 sum1 = F.depend(sum1, get_status)
78 sum2 = add2(sum1, dx[0])
113 sum1 = C.hyper_add([add1, add1], [x, y])
115 init = F.depend(init, sum1)
118 sum1 = F.depend(sum1, get_status)
120 sum2 = add2(sum1[0], dx[0])
121 sum3 = add2(sum1[1], dx[1])
/third_party/ffmpeg/libavcodec/
Dmpegaudiodsp_template.c38 float sum1=*sum; in round_sample() local
40 return sum1; in round_sample()
59 int sum1; in round_sample() local
60 sum1 = (int)((*sum) >> OUT_SHIFT); in round_sample()
62 return av_clip_int16(sum1); in round_sample()
95 #define SUM8P2(sum1, op1, sum2, op2, w1, w2, p) \ argument
99 op1(sum1, (w1)[0 * 64], tmp);\
102 op1(sum1, (w1)[1 * 64], tmp);\
105 op1(sum1, (w1)[2 * 64], tmp);\
108 op1(sum1, (w1)[3 * 64], tmp);\
[all …]
/third_party/pulseaudio/src/pulsecore/
Dmix_neon.c38 int32x4_t sum0, sum1; in pa_mix_ch2_s16ne_neon() local
44 : [sum0] "=w" (sum0), [sum1] "=w" (sum1) in pa_mix_ch2_s16ne_neon()
64 : [ptr] "+r" (m->ptr), [sum0] "+w" (sum0), [sum1] "+w" (sum1) in pa_mix_ch2_s16ne_neon()
75 : [sum0] "w" (sum0), [sum1] "w" (sum1) in pa_mix_ch2_s16ne_neon()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dlayer_norm_grad_impl.cu111 … T *sum1, T *sum2, T *sum3, const T *dy, const T *x, const T *mean, in InputThreadReduce() argument
126 sum1[0] += -0.5 * v1 * v2 * my_pow(var[row] + epsilon, -1.5); in InputThreadReduce()
135 … half *sum1, half *sum2, half *sum3, const half *dy, const half *x, in InputThreadReduce() argument
150 sum1[0] += __float2half(-0.5) * v1 * v2 * my_pow(var[row] + epsilon, -1.5); in InputThreadReduce()
158 inline __device__ void InputWarpReduce(T *sum1, T *sum2, T *sum3) { in InputWarpReduce() argument
160 sum1[0] += __shfl_down_sync(0xffffffff, sum1[0], delta); in InputWarpReduce()
167 inline __device__ void InputBlockReduce(const int &col_dim, T *sum1, T *sum2, T *sum3, T *share_mem… in InputBlockReduce() argument
172 share_mem[offset] = sum1[0]; in InputBlockReduce()
224 T sum1 = 0; in InputPropKernel() local
228 … InputThreadReduce(row, col_dim, param_dim, epsilon, &sum1, &sum2, &sum3, dy, x, mean, var, gamma); in InputPropKernel()
[all …]
/third_party/boost/libs/hof/test/
Dinfix.cpp42 BOOST_HOF_STATIC_FUNCTION(sum1) = boost::hof::infix(sum_f());
46 BOOST_HOF_TEST_CHECK(3 == (1 <sum1> 2)); in BOOST_HOF_TEST_CASE()
47 BOOST_HOF_STATIC_TEST_CHECK(3 == (1 <sum1> 2)); in BOOST_HOF_TEST_CASE()
49 BOOST_HOF_TEST_CHECK(3 == (sum1(1, 2))); in BOOST_HOF_TEST_CASE()
50 BOOST_HOF_STATIC_TEST_CHECK(3 == (sum1(1, 2))); in BOOST_HOF_TEST_CASE()
/third_party/skia/third_party/externals/libwebp/src/dsp/
Dssim_sse2.c37 const __m128i sum1 = _mm_madd_epi16(C0, C0); in SubtractAndSquare_SSE2() local
39 *sum = _mm_add_epi32(sum1, sum2); in SubtractAndSquare_SSE2()
52 __m128i sum1; in AccumulateSSE_SSE2() local
62 SubtractAndSquare_SSE2(a0, b0, &sum1); in AccumulateSSE_SSE2()
63 sum = _mm_add_epi32(sum, sum1); in AccumulateSSE_SSE2()
70 SubtractAndSquare_SSE2(a0, b0, &sum1); in AccumulateSSE_SSE2()
71 sum = _mm_add_epi32(sum, sum1); in AccumulateSSE_SSE2()
/third_party/ffmpeg/libavcodec/mips/
Dmpegaudiodsp_mips_fixed.c71 int sum1 = 0; in ff_mpadsp_apply_window_mips_fixed() local
170 [sum1] "+r" (sum1), [w] "+r" (w), [temp3] "+r" (temp3) in ff_mpadsp_apply_window_mips_fixed()
293 [p_temp1] "+r" (p_temp1), [p_temp2] "+r" (p_temp2), [sum1] "+r" (sum1), in ff_mpadsp_apply_window_mips_fixed()
344 [w_asm2] "=&r" (w_asm2), [p_asm2] "=&r" (p_asm2), [sum1] "+r" (sum1) in ff_mpadsp_apply_window_mips_fixed()
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/
Dssim_sse2.c37 const __m128i sum1 = _mm_madd_epi16(C0, C0); in SubtractAndSquare_SSE2() local
39 *sum = _mm_add_epi32(sum1, sum2); in SubtractAndSquare_SSE2()
52 __m128i sum1; in AccumulateSSE_SSE2() local
62 SubtractAndSquare_SSE2(a0, b0, &sum1); in AccumulateSSE_SSE2()
63 sum = _mm_add_epi32(sum, sum1); in AccumulateSSE_SSE2()
70 SubtractAndSquare_SSE2(a0, b0, &sum1); in AccumulateSSE_SSE2()
71 sum = _mm_add_epi32(sum, sum1); in AccumulateSSE_SSE2()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/
Dlayernorm_grad.c41 float sum1 = 0.0f; in LayerNormGrad() local
49 sum1 += -0.5f * dyg * dxm * pow(var_sqrt_rev[i] + eps, -1.5); in LayerNormGrad()
58 float dx2 = sum1 * 2.0f / block_size * (x[index] - mean[i]); in LayerNormGrad()
59 … float dx3 = (-1.0f * var_sqrt * sum2 + (1.0f / block_size) * sum1 * sum3) * (1.0f / block_size); in LayerNormGrad()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp16_grad/
Dlayernorm_grad.c38 float sum1 = 0.0f; in LayerNormFp16Grad() local
46sum1 += -0.5f * dyg * dxm * var_sqrt_rev[norm_shift] * var_sqrt_rev[norm_shift] * var_sqrt_rev[nor… in LayerNormFp16Grad()
55 float dx2 = sum1 * 2.0f / block_size * (x[j] - mean[norm_shift]); in LayerNormFp16Grad()
56 … float dx3 = (-1.0f * var_sqrt * sum2 + (1.0f / block_size) * sum1 * sum3) * (1.0f / block_size); in LayerNormFp16Grad()
/third_party/pulseaudio/src/modules/echo-cancel/
Dadrian-aec.h156 REAL sum0 = 0.0, sum1 = 0.0; in highpass() local
162 sum1 += a[j + 1] * z[j + 1]; in highpass()
164 return sum0 + sum1; in highpass()
187 REAL sum0 = 0.0, sum1 = 0.0; in FIR_HP_300Hz_highpass() local
209 sum1 += a[j + 1] * f->z[j + 1]; in FIR_HP_300Hz_highpass()
211 return sum0 + sum1; in FIR_HP_300Hz_highpass()
/third_party/libsnd/src/ALAC/
Ddp_enc.c79 int32_t sum1, dd ; in pc_block() local
133 sum1 = (denhalf - a0 * b0 - a1 * b1 - a2 * b2 - a3 * b3) >> denshift ; in pc_block()
135 del = in [j] - top - sum1 ; in pc_block()
225 sum1 = (denhalf - a0 * b0 - a1 * b1 - a2 * b2 - a3 * b3 in pc_block()
228 del = in [j] - top - sum1 ; in pc_block()
349 sum1 = 0 ; in pc_block()
351 sum1 -= coefs [k] * (top - pin [-k]) ; in pc_block()
353 del = in [j] - top - ((sum1 + denhalf) >> denshift) ; in pc_block()
Ddp_dec.c58 int32_t sum1, sg, sgn, top, dd ; in unpc_block() local
126 sum1 = (denhalf - ia0 * ib0 - ia1 * ib1 - ia2 * ib2 - ia3 * ib3) >> denshift ; in unpc_block()
131 del += top + sum1 ; in unpc_block()
219 sum1 = (denhalf - a0 * b0 - a1 * b1 - a2 * b2 - a3 * b3 in unpc_block()
225 del += top + sum1 ; in unpc_block()
340 sum1 = 0 ; in unpc_block() local
345 sum1 += coefs [k] * (pout [-k] - top) ; in unpc_block()
350 del += top + ((sum1 + denhalf) >> denshift) ; in unpc_block()
/third_party/ffmpeg/libavfilter/opencl/
Dconvolution.cl59 float4 sum1 = read_imagef(src, sampler, loc + (int2)(-1,-1)) * -1 +
73 float4 dstPix = hypot(sum1, sum2) * div + bias;
88 float4 sum1 = read_imagef(src, sampler, loc + (int2)(-1,-1)) * 1 +
102 float4 dstPix = hypot(sum1, sum2) * div + bias;
117 float4 sum1 = read_imagef(src, sampler, loc + (int2)(-1,-1)) * 1 +
125 float4 dstPix = hypot(sum1, sum2) * div + bias;

1234