Lines Matching defs:new
1069 /* add a new service curve to a generalized service curve */
1128 * if gsc has no entry starting at x, a new entry is created at x.
1133 struct segment *new, *prev, *s;
1145 /* we have to create a new entry */
1146 if ((new = calloc(1, sizeof(struct segment))) == NULL)
1149 new->x = x;
1151 new->d = 0;
1153 new->d = INFINITY;
1155 new->d = s->x - x;
1157 /* insert the new entry at the head of the list */
1158 new->y = 0;
1159 new->m = 0;
1160 LIST_INSERT_HEAD(gsc, new, _next);
1169 new->y = prev->y;
1171 new->y = INFINITY;
1174 new->y = prev->d * prev->m + prev->y;
1176 new->m = prev->m;
1177 LIST_INSERT_AFTER(prev, new, _next);
1179 return (new);