Lines Matching defs:count

88   bool resize (unsigned int count)
91 if (unlikely (!pages.resize (count) || !page_map.resize (count)))
114 unsigned int count = pages.length;
115 for (unsigned int i = 0; i < count; i++)
164 void set_array (bool v, const T *array, unsigned int count, unsigned int stride=sizeof(T))
167 if (!count) return;
170 while (count)
182 count--;
184 while (count && (g = *array, start <= g && g < end));
189 void add_array (const T *array, unsigned int count, unsigned int stride=sizeof(T))
190 { set_array (true, array, count, stride); }
195 void del_array (const T *array, unsigned int count, unsigned int stride=sizeof(T))
196 { set_array (false, array, count, stride); }
203 bool set_sorted_array (bool v, const T *array, unsigned int count, unsigned int stride=sizeof(T))
206 if (!count) return true;
210 while (count)
226 count--;
228 while (count && (g = *array, g < end));
234 bool add_sorted_array (const T *array, unsigned int count, unsigned int stride=sizeof(T))
235 { return set_sorted_array (true, array, count, stride); }
240 bool del_sorted_array (const T *array, unsigned int count, unsigned int stride=sizeof(T))
241 { return set_sorted_array (false, array, count, stride); }
339 unsigned int count = other.pages.length;
340 if (unlikely (!resize (count)))
345 hb_memcpy ((void *) pages, (const void *) other.pages, count * pages.item_size);
346 hb_memcpy ((void *) page_map, (const void *) other.page_map, count * page_map.item_size);
468 unsigned int count = 0, newCount = 0;
492 count++;
499 count++;
505 count++;
510 count += na - a;
512 count += nb - b;
521 if (unlikely (!resize (count)))
524 newCount = count;
535 count--;
536 page_map[count] = page_map[a];
537 page_at (count).v = op (page_at (a).v, other.page_at (b).v);
544 count--;
545 page_map[count] = page_map[a];
553 count--;
554 page_map[count].major = other.page_map[b].major;
555 page_map[count].index = next_page++;
556 page_at (count).v = other.page_at (b).v;
564 count--;
565 page_map[count] = page_map [a];
571 count--;
572 page_map[count].major = other.page_map[b].major;
573 page_map[count].index = next_page++;
574 page_at (count).v = other.page_at (b).v;
576 assert (!count);
710 unsigned int count = pages.length;
711 for (unsigned int i = 0; i < count; i++)
719 unsigned count = pages.length;
720 for (unsigned i = 0; i < count; i++)
732 unsigned count = pages.length;
733 for (signed i = count - 1; i >= 0; i--)