Lines Matching refs:FN
8 /* template parameters: FN, DataType */
10 #define HistogramType FN(Histogram)
12 static void FN(InitialEntropyCodes)(const DataType* data, size_t length,
19 FN(ClearHistograms)(histograms, num_histograms);
28 FN(HistogramAddVector)(&histograms[i], data + pos, stride);
32 static void FN(RandomSample)(unsigned int* seed,
44 FN(HistogramAddVector)(sample, data + pos, stride);
47 static void FN(RefineEntropyCodes)(const DataType* data, size_t length,
58 FN(HistogramClear)(&sample);
59 FN(RandomSample)(&seed, data, length, stride, &sample);
60 FN(HistogramAddHistogram)(&histograms[iter % num_histograms], &sample);
67 static size_t FN(FindBlocks)(const DataType* data, const size_t length,
75 const size_t data_size = FN(HistogramDataSize)();
156 static size_t FN(RemapBlockIds)(uint8_t* block_ids, const size_t length,
178 static void FN(BuildBlockHistograms)(const DataType* data, const size_t length,
183 FN(ClearHistograms)(histograms, num_histograms);
185 FN(HistogramAdd)(&histograms[block_ids[i]], data[i]);
189 static void FN(ClusterBlocks)(MemoryManager* m,
246 FN(HistogramClear)(&histograms[j]);
248 FN(HistogramAdd)(&histograms[j], data[pos++]);
250 histograms[j].bit_cost_ = FN(BrotliPopulationCost)(&histograms[j]);
255 num_new_clusters = FN(BrotliHistogramCombine)(
290 num_final_clusters = FN(BrotliHistogramCombine)(
308 FN(HistogramClear)(&histo);
310 FN(HistogramAdd)(&histo, data[pos++]);
314 FN(BrotliHistogramBitCostDistance)(&histo, &all_histograms[best_out]);
316 const double cur_bits = FN(BrotliHistogramBitCostDistance)(
360 static void FN(SplitByteVector)(MemoryManager* m,
368 const size_t data_size = FN(HistogramDataSize)();
392 FN(InitialEntropyCodes)(data, length,
395 FN(RefineEntropyCodes)(data, length,
411 num_blocks = FN(FindBlocks)(data, length,
416 num_histograms = FN(RemapBlockIds)(block_ids, length,
418 FN(BuildBlockHistograms)(data, length, block_ids,
426 FN(ClusterBlocks)(m, data, length, num_blocks, block_ids, split);