Lines Matching refs:j
65 int i, j; in subtract_range() local
70 for (j = 0; j < az; j++) { in subtract_range()
71 if (!range[j].end) in subtract_range()
74 if (start <= range[j].start && end >= range[j].end) { in subtract_range()
75 range[j].start = 0; in subtract_range()
76 range[j].end = 0; in subtract_range()
80 if (start <= range[j].start && end < range[j].end && in subtract_range()
81 range[j].start < end) { in subtract_range()
82 range[j].start = end; in subtract_range()
87 if (start > range[j].start && end >= range[j].end && in subtract_range()
88 range[j].end > start) { in subtract_range()
89 range[j].end = start; in subtract_range()
93 if (start > range[j].start && end < range[j].end) { in subtract_range()
100 range[i].end = range[j].end; in subtract_range()
106 range[j].end = start; in subtract_range()
126 int i, j, k = az - 1, nr_range = az; in clean_sort_range() local
131 for (j = k; j > i; j--) { in clean_sort_range()
132 if (range[j].end) { in clean_sort_range()
133 k = j; in clean_sort_range()
137 if (j == i) in clean_sort_range()