Lines Matching refs:symbols
72 uint32_t* symbols,
112 if (symbols[i] == best_idx2) {
113 symbols[i] = best_idx1;
170 symbols[0..in_size), but this property is not preserved in this function.
174 HistogramType* out, uint32_t* symbols) CODE({
177 uint32_t best_out = i == 0 ? symbols[0] : symbols[i - 1];
189 symbols[i] = best_out;
192 /* Recompute each out based on raw and symbols. */
197 FN(HistogramAddHistogram)(&out[symbols[i]], &in[i]);
202 symbols[0..length) array in the following way:
203 * when called, symbols[] contains indexes into out[], and has N unique
205 * on return, symbols'[i] = f(symbols[i]) and
206 out'[symbols'[i]] = out[symbols[i]], for each 0 <= i < length,
207 where f is a bijection between the range of symbols[] and [0..N), and
208 the first occurrences of values in symbols'[i] come in consecutive
210 Returns N, the number of unique values in symbols[]. */
212 HistogramType* out, uint32_t* symbols, size_t length) CODE({
224 if (new_index[symbols[i]] == kInvalidIndex) {
225 new_index[symbols[i]] = next_index;
235 if (new_index[symbols[i]] == next_index) {
236 tmp[next_index] = out[symbols[i]];
239 symbols[i] = new_index[symbols[i]];