148 const int16_t &spos =
start[ch];
152 const size_t pos = ch*1024;
154 const int16_t *beg_val = val + pos;
155 const int32_t *beg_offset = offset + pos;
156 int64_t *beg_sum =
fSum.data() + pos;
157 int64_t *beg_sum2 =
fSum2.data() + pos;
160 const int16_t *pval = beg_val;
161 const int32_t *poffset = beg_offset + spos;
162 int64_t *psum = beg_sum + spos;
163 int64_t *psum2 = beg_sum2 + spos;
165 while (psum<beg_sum+1024)
167 const int64_t v = int64_t(*pval++)*scale - *poffset++;
175 poffset = beg_offset;
177 while (pval<beg_val+1024)
179 const int64_t v = int64_t(*pval++)*scale - *poffset++;
std::vector< int64_t > fSum
std::vector< int64_t > fSum2