Lines Matching refs:totalWeight
1301 int totalWeight = 0; /* Sum of the weights for all the slots. */
1323 totalWeight += slotPtr[slot].weight;
1326 if (totalWeight == 0 ) {
1339 slotPtr[slot].offset += diff * weight / totalWeight;
1388 for (totalWeight=slot=0; slot < slots; slot++) {
1392 totalWeight += slotPtr[slot].weight;
1398 if (totalWeight == 0) {
1416 maxDiff = totalWeight * (slotPtr[slot].minSize - current)
1429 slotPtr[slot].offset += newDiff * weight / totalWeight;
1997 int totalWeight = 0; /* Sum of the weights for all of the
2031 totalWeight += layoutPtr[slot].weight;
2041 if (totalWeight == 0) {
2043 totalWeight = end - start + 1;
2063 (diff*totalWeight/weight) < (have-need)) {
2064 have = diff * totalWeight / weight + need;
2076 (int)((double) (have-need) * weight/totalWeight + 0.5);