Lines Matching refs:page_t
54 struct page_t struct
91 bool is_equal (const page_t *other) const in is_equal() argument
184 static_assert (page_t::PAGE_BITS == sizeof (page_t) * 8, "");
190 hb_vector_t<page_t, 1> pages;
255 page_t *page = page_for_insert (g); if (unlikely (!page)) return; in add()
267 page_t *page = page_for_insert (a); if (unlikely (!page)) return false; in add_range()
272 page_t *page = page_for_insert (a); if (unlikely (!page)) return false; in add_range()
297 page_t *page = page_for_insert (g); if (unlikely (!page)) return; in add_array()
324 page_t *page = page_for_insert (g); if (unlikely (!page)) return false; in add_sorted_array()
346 page_t *page = page_for (g); in del()
362 const page_t *page = page_for (g); in has()
554 *codepoint += page_map[i].major * page_t::PAGE_BITS; in next()
564 *codepoint = page_map[i].major * page_t::PAGE_BITS + m; in next()
585 *codepoint += page_map[i].major * page_t::PAGE_BITS; in previous()
595 *codepoint = page_map[i].major * page_t::PAGE_BITS + m; in previous()
657 return page_map[i].major * page_t::PAGE_BITS + page_at (i).get_min (); in get_min()
665 return page_map[(unsigned) i].major * page_t::PAGE_BITS + page_at (i).get_max (); in get_max()
671 page_t *page_for_insert (hb_codepoint_t g) in page_for_insert()
688 page_t *page_for (hb_codepoint_t g) in page_for()
696 const page_t *page_for (hb_codepoint_t g) const in page_for()
704 page_t &page_at (unsigned int i) { return pages[page_map[i].index]; } in page_at()
705 const page_t &page_at (unsigned int i) const { return pages[page_map[i].index]; } in page_at()
706 unsigned int get_major (hb_codepoint_t g) const { return g / page_t::PAGE_BITS; } in get_major()
707 hb_codepoint_t major_start (unsigned int major) const { return major * page_t::PAGE_BITS; } in major_start()