Lines Matching defs:first
51 * Allocate a block of <count> IDs. Return index of first one.
112 * Free a block of <count> IDs starting at <first>.
114 void crIdPoolFreeBlock( CRIdPool *pool, GLuint first, GLuint count )
123 for (i = pool->freeList; i && i->next && i->next->min < first; i = i->next)
131 if (!i->next && i->max == first)
134 /* Case: j:(~,first-1) */
135 if (i->max + 1 == first)
156 /* Case: j->next: (first+1, ~) */
157 if (i->next && i->next->min - count == first)
178 /* Case: j: (first+1, ~) j->next: null */
179 if (!i->next && i->min - count == first)
187 newelem->min = first;
188 newelem->max = first + count - 1;
190 /* Case: j: (~,first-(2+)) j->next: (first+(2+), ~) or null */
191 if (first > i->max)
203 /* Case: j: (first+(2+), ~) */
205 if (i == pool->freeList && i->min > first)