Lines Matching refs:rlp
228 _ranges_t *rlp; in add_range() local
251 rlp = &proptbl[i]; in add_range()
256 if (rlp->used == rlp->size) { in add_range()
257 if (rlp->size == 0) in add_range()
258 rlp->ranges = (ac_uint4 *) in add_range()
261 rlp->ranges = (ac_uint4 *) in add_range()
262 realloc((char *) rlp->ranges, in add_range()
263 sizeof(ac_uint4) * (rlp->size + 8)); in add_range()
264 rlp->size += 8; in add_range()
271 if (rlp->used == 0) { in add_range()
272 rlp->ranges[0] = start; in add_range()
273 rlp->ranges[1] = end; in add_range()
274 rlp->used += 2; in add_range()
281 j = rlp->used - 1; in add_range()
282 if (start > rlp->ranges[j]) { in add_range()
283 j = rlp->used; in add_range()
284 rlp->ranges[j++] = start; in add_range()
285 rlp->ranges[j++] = end; in add_range()
286 rlp->used = j; in add_range()
294 i < rlp->used && start > rlp->ranges[i + 1] + 1; i += 2) ; in add_range()
300 if (rlp->ranges[i] <= start && start <= rlp->ranges[i + 1] + 1) { in add_range()
301 rlp->ranges[i + 1] = end; in add_range()
308 for (j = rlp->used; j > i; j -= 2) { in add_range()
309 rlp->ranges[j] = rlp->ranges[j - 2]; in add_range()
310 rlp->ranges[j + 1] = rlp->ranges[j - 1]; in add_range()
316 rlp->ranges[i] = start; in add_range()
317 rlp->ranges[i + 1] = end; in add_range()
318 rlp->used += 2; in add_range()
327 _ranges_t *rlp; in ordered_range_insert() local
359 rlp = &proptbl[i]; in ordered_range_insert()
364 if (rlp->used == rlp->size) { in ordered_range_insert()
365 if (rlp->size == 0) in ordered_range_insert()
366 rlp->ranges = (ac_uint4 *) in ordered_range_insert()
369 rlp->ranges = (ac_uint4 *) in ordered_range_insert()
370 realloc((char *) rlp->ranges, in ordered_range_insert()
371 sizeof(ac_uint4) * (rlp->size + 8)); in ordered_range_insert()
372 rlp->size += 8; in ordered_range_insert()
379 if (rlp->used == 0) { in ordered_range_insert()
380 rlp->ranges[0] = rlp->ranges[1] = c; in ordered_range_insert()
381 rlp->used += 2; in ordered_range_insert()
389 j = rlp->used - 1; in ordered_range_insert()
390 e = rlp->ranges[j]; in ordered_range_insert()
391 s = rlp->ranges[j - 1]; in ordered_range_insert()
397 rlp->ranges[j] = c; in ordered_range_insert()
405 j = rlp->used; in ordered_range_insert()
406 rlp->ranges[j] = rlp->ranges[j + 1] = c; in ordered_range_insert()
407 rlp->used += 2; in ordered_range_insert()
422 i < rlp->used && c > rlp->ranges[i + 1] + 1; i += 2) ; in ordered_range_insert()
424 s = rlp->ranges[i]; in ordered_range_insert()
425 e = rlp->ranges[i + 1]; in ordered_range_insert()
431 rlp->ranges[i + 1] = c; in ordered_range_insert()
437 for (j = rlp->used; j > i; j -= 2) { in ordered_range_insert()
438 rlp->ranges[j] = rlp->ranges[j - 2]; in ordered_range_insert()
439 rlp->ranges[j + 1] = rlp->ranges[j - 1]; in ordered_range_insert()
441 rlp->ranges[i] = rlp->ranges[i + 1] = c; in ordered_range_insert()
443 rlp->used += 2; in ordered_range_insert()