// Returns HUGE_VAL if there's no legal mapping.
double FindOptimalCost(uint32_t *cum_freqs, int num_syms, int available_slots, const double *log2cache, CacheMap *cache)
{
// Returns HUGE_VAL if there's no legal mapping.
double FindOptimalCost(uint32_t *cum_freqs, int num_syms, int available_slots, const double *log2cache, CacheMap *cache)
{