Searched refs:newCost (Results 1 – 2 of 2) sorted by relevance
273 double newCost = costs[j] + costmodel(in[i], 0, costcontext); in GetBestLengths() local274 assert(newCost >= 0); in GetBestLengths()275 if (newCost < costs[j + 1]) { in GetBestLengths()276 costs[j + 1] = newCost; in GetBestLengths()282 double newCost; in GetBestLengths() local288 newCost = costs[j] + costmodel(k, sublen[k], costcontext); in GetBestLengths()289 assert(newCost >= 0); in GetBestLengths()290 if (newCost < costs[j + k]) { in GetBestLengths()292 costs[j + k] = newCost; in GetBestLengths()
686 AddrCost *currCost, *newCost; in fprint_bbcc() local698 newCost = &(ccSum[1-currSum]); in fprint_bbcc()709 &(newCost->p))) { in fprint_bbcc()711 newCost->p.file = bbcc->cxt->fn[0]->file; in fprint_bbcc()715 (newCost->p.line != currCost->p.line) || in fprint_bbcc()716 (newCost->p.file != currCost->p.file)) { in fprint_bbcc()728 newCost = &(ccSum[1-currSum]); in fprint_bbcc()