Lines Matching refs:scale
288 // sum up the floating point weight, so we get a scale
289 double scale = 0;
292 scale += info->weight;
297 if (scale == 0) {
305 // We scale the weights so that their sum is about 100000. This should
306 // give us ample resolution. If possible make the scale integer, so that
308 if (scale >= 1 && scale <= 100000)
309 scale = lround(100000 / scale);
311 scale = 100000 / scale;
315 info->tempWeight = (int64)(info->weight * scale);