Lines Matching full:symbols
70 uint32_t* symbols,
110 if (symbols[i] == best_idx2) {
111 symbols[i] = best_idx1;
168 symbols[0..in_size), but this property is not preserved in this function.
172 HistogramType* out, uint32_t* symbols) CODE({
175 uint32_t best_out = i == 0 ? symbols[0] : symbols[i - 1];
187 symbols[i] = best_out;
190 /* Recompute each out based on raw and symbols. */
195 FN(HistogramAddHistogram)(&out[symbols[i]], &in[i]);
200 symbols[0..length) array in the following way:
201 * when called, symbols[] contains indexes into out[], and has N unique
203 * on return, symbols'[i] = f(symbols[i]) and
204 out'[symbols'[i]] = out[symbols[i]], for each 0 <= i < length,
205 where f is a bijection between the range of symbols[] and [0..N), and
206 the first occurrences of values in symbols'[i] come in consecutive
208 Returns N, the number of unique values in symbols[]. */
210 HistogramType* out, uint32_t* symbols, size_t length) CODE({
222 if (new_index[symbols[i]] == kInvalidIndex) {
223 new_index[symbols[i]] = next_index;
233 if (new_index[symbols[i]] == next_index) {
234 tmp[next_index] = out[symbols[i]];
237 symbols[i] = new_index[symbols[i]];