251 const int16_t &spos =
start[ch];
257 const int32_t *beg_offset = offset + ch*1024;
258 const int16_t *beg_val = val + pos;
259 int64_t *beg_sum =
fSum.data() + pos;
260 int64_t *beg_sum2 =
fSum2.data() + pos;
263 const int16_t *pval = beg_val;
264 const int32_t *poffset = beg_offset + spos;
265 int64_t *psum = beg_sum;
266 int64_t *psum2 = beg_sum2;
268 if (spos+fNumSamples>1024)
270 while (poffset<beg_offset+1024)
272 const int64_t v = int64_t(*pval++)*scale - *poffset++;
278 poffset = beg_offset;
281 while (psum<beg_sum+fNumSamples)
283 const int64_t v = int64_t(*pval++)*scale - *poffset++;
std::vector< int64_t > fSum
std::vector< int64_t > fSum2