Lines Matching refs:ranges
14 * Helper code for finding a small number of dense ranges.
87 * Does it make sense to write 1..capacity ranges?
88 * Returns 0 if not, otherwise the number of ranges.
93 * @param ranges Output ranges array.
94 * @param capacity Maximum number of ranges.
95 * @return Minimum number of ranges (at most capacity) that have the desired density,
101 int32_t ranges[][2], int32_t capacity) {
112 ranges[0][0]=minValue;
113 ranges[0][1]=maxValue;
119 // See if we can split [minValue, maxValue] into 2..capacity ranges,
138 // The values are too sparse for capacity or fewer ranges
147 // Use the num ranges with the num-1 largest gaps.
149 ranges[0][0]=minValue;
153 ranges[i][1]=gapStart-1;
154 ranges[i+1][0]=minValue=(int32_t)(gapStart+gaps.gapLength(gapIndex));
156 ranges[num-1][1]=maxValue;