/* True if r1 completely contains r2 */ staticinlinebool range_contains(conststruct range *r1, conststruct range *r2)
{ return r1->start <= r2->start && r1->end >= r2->end;
}
/* True if any part of r1 overlaps r2 */ staticinlinebool range_overlaps(conststruct range *r1, conststruct range *r2)
{ return r1->start <= r2->end && r1->end >= r2->start;
}
int add_range(struct range *range, int az, int nr_range,
u64 start, u64 end);
int add_range_with_merge(struct range *range, int az, int nr_range,
u64 start, u64 end);
void subtract_range(struct range *range, int az, u64 start, u64 end);
int clean_sort_range(struct range *range, int az);
void sort_range(struct range *range, int nr_range);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.