Lines Matching defs:acc
251 /** Compute cross-power spectrum of a half-complex (packed) vectors and add to acc */
253 static inline void spectral_mul_accum(const spx_word16_t *X, const spx_word32_t *Y, spx_word16_t *acc, int N, int M)
261 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT);
270 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT);
271 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT);
278 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT);
280 static inline void spectral_mul_accum16(const spx_word16_t *X, const spx_word16_t *Y, spx_word16_t *acc, int N, int M)
288 acc[0] = PSHR32(tmp1,WEIGHT_SHIFT);
297 acc[i] = PSHR32(tmp1,WEIGHT_SHIFT);
298 acc[i+1] = PSHR32(tmp2,WEIGHT_SHIFT);
305 acc[N-1] = PSHR32(tmp1,WEIGHT_SHIFT);
309 static inline void spectral_mul_accum(const spx_word16_t *X, const spx_word32_t *Y, spx_word16_t *acc, int N, int M)
313 acc[i] = 0;
316 acc[0] += X[0]*Y[0];
319 acc[i] += (X[i]*Y[i] - X[i+1]*Y[i+1]);
320 acc[i+1] += (X[i+1]*Y[i] + X[i]*Y[i+1]);
322 acc[i] += X[i]*Y[i];