Lines Matching refs:max
50 if (fvcmp(p->size, a->max, b->min) < 0)
52 if (fvcmp(p->size, a->min, b->max) > 0)
66 fvcpy(p->size, b->max = b->min + p->size, a->max);
130 * insert prefix range min..max into tab
135 ptvinsert(Ptv_t* tab, Ptvaddr_t min, Ptvaddr_t max)
146 key.min = key.max = tab->r[3];
149 key.min = key.max = min;
153 key.max = max;
157 if (fvcmp(tab->size, key.min, xp->min) >= 0 && fvcmp(tab->size, key.max, xp->max) <= 0)
163 if (fvcmp(tab->size, key.max, tab->r[3]) >= 0)
169 max = xp->max;
176 } while (fvcmp(tab->size, key.max, tab->r[3]) >= 0);
177 if (fvcmp(tab->size, key.max, max) < 0)
178 key.max = max;
185 * delete prefix range min..max from tab
190 ptvdelete(Ptv_t* tab, Ptvaddr_t min, Ptvaddr_t max)
198 key.max = max;
205 cur.max = xp->max;
209 max = cur.max;
211 cur.max = tab->r[0];
214 if (fvcmp(tab->size, key.max, max) < 0)
216 fvadd(tab->size, tab->r[2], key.max, tab->r[1]);
218 cur.max = max;
224 else if (fvcmp(tab->size, key.max, xp->max) < 0)
226 fvadd(tab->size, tab->r[3], key.max, tab->r[1]);