/src/skia/third_party/externals/harfbuzz/src/hb-bit-set.hh
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright © 2012,2017 Google, Inc. |
3 | | * Copyright © 2021 Behdad Esfahbod |
4 | | * |
5 | | * This is part of HarfBuzz, a text shaping library. |
6 | | * |
7 | | * Permission is hereby granted, without written agreement and without |
8 | | * license or royalty fees, to use, copy, modify, and distribute this |
9 | | * software and its documentation for any purpose, provided that the |
10 | | * above copyright notice and the following two paragraphs appear in |
11 | | * all copies of this software. |
12 | | * |
13 | | * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
14 | | * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
15 | | * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
16 | | * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
17 | | * DAMAGE. |
18 | | * |
19 | | * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
20 | | * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
21 | | * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
22 | | * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
23 | | * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
24 | | * |
25 | | * Google Author(s): Behdad Esfahbod |
26 | | */ |
27 | | |
28 | | #ifndef HB_BIT_SET_HH |
29 | | #define HB_BIT_SET_HH |
30 | | |
31 | | #include "hb.hh" |
32 | | #include "hb-bit-page.hh" |
33 | | |
34 | | |
35 | | struct hb_bit_set_t |
36 | | { |
37 | 0 | hb_bit_set_t () = default; |
38 | 0 | ~hb_bit_set_t () = default; |
39 | | |
40 | 0 | hb_bit_set_t (const hb_bit_set_t& other) : hb_bit_set_t () { set (other, true); } |
41 | 0 | hb_bit_set_t ( hb_bit_set_t&& other) noexcept : hb_bit_set_t () { hb_swap (*this, other); } |
42 | 0 | hb_bit_set_t& operator= (const hb_bit_set_t& other) { set (other); return *this; } |
43 | 0 | hb_bit_set_t& operator= (hb_bit_set_t&& other) noexcept { hb_swap (*this, other); return *this; } |
44 | | friend void swap (hb_bit_set_t &a, hb_bit_set_t &b) noexcept |
45 | 0 | { |
46 | 0 | if (likely (!a.successful || !b.successful)) |
47 | 0 | return; |
48 | 0 | hb_swap (a.population, b.population); |
49 | 0 | hb_swap (a.last_page_lookup, b.last_page_lookup); |
50 | 0 | hb_swap (a.page_map, b.page_map); |
51 | 0 | hb_swap (a.pages, b.pages); |
52 | 0 | } |
53 | | |
54 | | void init () |
55 | 0 | { |
56 | 0 | successful = true; |
57 | 0 | population = 0; |
58 | 0 | last_page_lookup = 0; |
59 | 0 | page_map.init (); |
60 | 0 | pages.init (); |
61 | 0 | } |
62 | | void fini () |
63 | 0 | { |
64 | 0 | page_map.fini (); |
65 | 0 | pages.fini (); |
66 | 0 | } |
67 | | |
68 | | using page_t = hb_bit_page_t; |
69 | | struct page_map_t |
70 | | { |
71 | 0 | int cmp (const page_map_t &o) const { return cmp (o.major); } |
72 | 0 | int cmp (uint32_t o_major) const { return (int) o_major - (int) major; } |
73 | | |
74 | | uint32_t major; |
75 | | uint32_t index; |
76 | | }; |
77 | | |
78 | | bool successful = true; /* Allocations successful */ |
79 | | mutable unsigned int population = 0; |
80 | | mutable hb_atomic_int_t last_page_lookup = 0; |
81 | | hb_sorted_vector_t<page_map_t> page_map; |
82 | | hb_vector_t<page_t> pages; |
83 | | |
84 | 0 | void err () { if (successful) successful = false; } /* TODO Remove */ |
85 | 0 | bool in_error () const { return !successful; } |
86 | | |
87 | | bool resize (unsigned int count, bool clear = true, bool exact_size = false) |
88 | 0 | { |
89 | 0 | if (unlikely (!successful)) return false; |
90 | | |
91 | 0 | if (pages.length == 0 && count == 1) |
92 | 0 | exact_size = true; // Most sets are small and local |
93 | |
|
94 | 0 | if (unlikely (!pages.resize (count, clear, exact_size) || !page_map.resize (count, clear, exact_size))) |
95 | 0 | { |
96 | 0 | pages.resize (page_map.length, clear, exact_size); |
97 | 0 | successful = false; |
98 | 0 | return false; |
99 | 0 | } |
100 | 0 | return true; |
101 | 0 | } |
102 | | |
103 | | void alloc (unsigned sz) |
104 | 0 | { |
105 | 0 | sz >>= (page_t::PAGE_BITS_LOG_2 - 1); |
106 | 0 | pages.alloc (sz); |
107 | 0 | page_map.alloc (sz); |
108 | 0 | } |
109 | | |
110 | | void reset () |
111 | 0 | { |
112 | 0 | successful = true; |
113 | 0 | clear (); |
114 | 0 | } |
115 | | |
116 | | void clear () |
117 | 0 | { |
118 | 0 | resize (0); |
119 | 0 | if (likely (successful)) |
120 | 0 | population = 0; |
121 | 0 | } |
122 | | bool is_empty () const |
123 | 0 | { |
124 | 0 | unsigned int count = pages.length; |
125 | 0 | for (unsigned int i = 0; i < count; i++) |
126 | 0 | if (!pages[i].is_empty ()) |
127 | 0 | return false; |
128 | 0 | return true; |
129 | 0 | } |
130 | 0 | explicit operator bool () const { return !is_empty (); } |
131 | | |
132 | | uint32_t hash () const |
133 | 0 | { |
134 | 0 | uint32_t h = 0; |
135 | 0 | for (auto &map : page_map) |
136 | 0 | { |
137 | 0 | auto &page = pages.arrayZ[map.index]; |
138 | 0 | if (unlikely (page.is_empty ())) continue; |
139 | 0 | h = h * 31 + hb_hash (map.major) + hb_hash (page); |
140 | 0 | } |
141 | 0 | return h; |
142 | 0 | } |
143 | | |
144 | | private: |
145 | 0 | void dirty () { population = UINT_MAX; } |
146 | | public: |
147 | | |
148 | | void add (hb_codepoint_t g) |
149 | 0 | { |
150 | 0 | if (unlikely (!successful)) return; |
151 | 0 | if (unlikely (g == INVALID)) return; |
152 | 0 | dirty (); |
153 | 0 | page_t *page = page_for (g, true); if (unlikely (!page)) return; |
154 | 0 | page->add (g); |
155 | 0 | } |
156 | | bool add_range (hb_codepoint_t a, hb_codepoint_t b) |
157 | 0 | { |
158 | 0 | if (unlikely (!successful)) return true; /* https://github.com/harfbuzz/harfbuzz/issues/657 */ |
159 | 0 | if (unlikely (a > b || a == INVALID || b == INVALID)) return false; |
160 | 0 | dirty (); |
161 | 0 | unsigned int ma = get_major (a); |
162 | 0 | unsigned int mb = get_major (b); |
163 | 0 | if (ma == mb) |
164 | 0 | { |
165 | 0 | page_t *page = page_for (a, true); if (unlikely (!page)) return false; |
166 | 0 | page->add_range (a, b); |
167 | 0 | } |
168 | 0 | else |
169 | 0 | { |
170 | 0 | page_t *page = page_for (a, true); if (unlikely (!page)) return false; |
171 | 0 | page->add_range (a, major_start (ma + 1) - 1); |
172 | |
|
173 | 0 | for (unsigned int m = ma + 1; m < mb; m++) |
174 | 0 | { |
175 | 0 | page = page_for (major_start (m), true); if (unlikely (!page)) return false; |
176 | 0 | page->init1 (); |
177 | 0 | } |
178 | | |
179 | 0 | page = page_for (b, true); if (unlikely (!page)) return false; |
180 | 0 | page->add_range (major_start (mb), b); |
181 | 0 | } |
182 | 0 | return true; |
183 | 0 | } |
184 | | |
185 | | /* Duplicated here from hb-machinery.hh to avoid including it. */ |
186 | | template<typename Type> |
187 | | static inline const Type& StructAtOffsetUnaligned(const void *P, unsigned int offset) |
188 | 0 | { |
189 | 0 | #pragma GCC diagnostic push |
190 | 0 | #pragma GCC diagnostic ignored "-Wcast-align" |
191 | 0 | return * reinterpret_cast<const Type*> ((const char *) P + offset); |
192 | 0 | #pragma GCC diagnostic pop |
193 | 0 | } Unexecuted instantiation: OT::Index const& hb_bit_set_t::StructAtOffsetUnaligned<OT::Index>(void const*, unsigned int) Unexecuted instantiation: OT::HBGlyphID16 const& hb_bit_set_t::StructAtOffsetUnaligned<OT::HBGlyphID16>(void const*, unsigned int) Unexecuted instantiation: unsigned int const& hb_bit_set_t::StructAtOffsetUnaligned<unsigned int>(void const*, unsigned int) |
194 | | |
195 | | template <typename T> |
196 | | void set_array (bool v, const T *array, unsigned int count, unsigned int stride=sizeof(T)) |
197 | 0 | { |
198 | 0 | if (unlikely (!successful)) return; |
199 | 0 | if (!count) return; |
200 | 0 | dirty (); |
201 | 0 | hb_codepoint_t g = *array; |
202 | 0 | while (count) |
203 | 0 | { |
204 | 0 | unsigned int m = get_major (g); |
205 | 0 | page_t *page = page_for (g, v); if (unlikely (v && !page)) return; |
206 | 0 | unsigned int start = major_start (m); |
207 | 0 | unsigned int end = major_start (m + 1); |
208 | 0 | do |
209 | 0 | { |
210 | 0 | if (g != INVALID && (v || page)) /* The v check is to optimize out the page check if v is true. */ |
211 | 0 | page->set (g, v); |
212 | |
|
213 | 0 | array = &StructAtOffsetUnaligned<T> (array, stride); |
214 | 0 | count--; |
215 | 0 | } |
216 | 0 | while (count && (g = *array, start <= g && g < end)); |
217 | 0 | } |
218 | 0 | } Unexecuted instantiation: void hb_bit_set_t::set_array<OT::Index>(bool, OT::Index const*, unsigned int, unsigned int) Unexecuted instantiation: void hb_bit_set_t::set_array<OT::HBGlyphID16>(bool, OT::HBGlyphID16 const*, unsigned int, unsigned int) Unexecuted instantiation: void hb_bit_set_t::set_array<unsigned int>(bool, unsigned int const*, unsigned int, unsigned int) |
219 | | |
220 | | template <typename T> |
221 | | void add_array (const T *array, unsigned int count, unsigned int stride=sizeof(T)) |
222 | 0 | { set_array (true, array, count, stride); } Unexecuted instantiation: void hb_bit_set_t::add_array<OT::Index>(OT::Index const*, unsigned int, unsigned int) Unexecuted instantiation: void hb_bit_set_t::add_array<OT::HBGlyphID16>(OT::HBGlyphID16 const*, unsigned int, unsigned int) Unexecuted instantiation: void hb_bit_set_t::add_array<unsigned int>(unsigned int const*, unsigned int, unsigned int) |
223 | | template <typename T> |
224 | | void add_array (const hb_array_t<const T>& arr) { add_array (&arr, arr.len ()); } |
225 | | |
226 | | template <typename T> |
227 | | void del_array (const T *array, unsigned int count, unsigned int stride=sizeof(T)) |
228 | 0 | { set_array (false, array, count, stride); } Unexecuted instantiation: void hb_bit_set_t::del_array<OT::Index>(OT::Index const*, unsigned int, unsigned int) Unexecuted instantiation: void hb_bit_set_t::del_array<OT::HBGlyphID16>(OT::HBGlyphID16 const*, unsigned int, unsigned int) Unexecuted instantiation: void hb_bit_set_t::del_array<unsigned int>(unsigned int const*, unsigned int, unsigned int) |
229 | | template <typename T> |
230 | | void del_array (const hb_array_t<const T>& arr) { del_array (&arr, arr.len ()); } |
231 | | |
232 | | /* Might return false if array looks unsorted. |
233 | | * Used for faster rejection of corrupt data. */ |
234 | | template <typename T> |
235 | | bool set_sorted_array (bool v, const T *array, unsigned int count, unsigned int stride=sizeof(T)) |
236 | 0 | { |
237 | 0 | if (unlikely (!successful)) return true; /* https://github.com/harfbuzz/harfbuzz/issues/657 */ |
238 | 0 | if (unlikely (!count)) return true; |
239 | 0 | dirty (); |
240 | 0 | hb_codepoint_t g = *array; |
241 | 0 | hb_codepoint_t last_g = g; |
242 | 0 | while (count) |
243 | 0 | { |
244 | 0 | unsigned int m = get_major (g); |
245 | 0 | page_t *page = page_for (g, v); if (unlikely (v && !page)) return false; |
246 | 0 | unsigned int end = major_start (m + 1); |
247 | 0 | do |
248 | 0 | { |
249 | | /* If we try harder we can change the following comparison to <=; |
250 | | * Not sure if it's worth it. */ |
251 | 0 | if (g < last_g) return false; |
252 | 0 | last_g = g; |
253 | |
|
254 | 0 | if (g != INVALID && (v || page)) /* The v check is to optimize out the page check if v is true. */ |
255 | 0 | page->add (g); |
256 | |
|
257 | 0 | array = &StructAtOffsetUnaligned<T> (array, stride); |
258 | 0 | count--; |
259 | 0 | } |
260 | 0 | while (count && (g = *array, g < end)); |
261 | 0 | } |
262 | 0 | return true; |
263 | 0 | } Unexecuted instantiation: bool hb_bit_set_t::set_sorted_array<OT::HBGlyphID16>(bool, OT::HBGlyphID16 const*, unsigned int, unsigned int) Unexecuted instantiation: bool hb_bit_set_t::set_sorted_array<unsigned int>(bool, unsigned int const*, unsigned int, unsigned int) |
264 | | |
265 | | template <typename T> |
266 | | bool add_sorted_array (const T *array, unsigned int count, unsigned int stride=sizeof(T)) |
267 | 0 | { return set_sorted_array (true, array, count, stride); } Unexecuted instantiation: bool hb_bit_set_t::add_sorted_array<OT::HBGlyphID16>(OT::HBGlyphID16 const*, unsigned int, unsigned int) Unexecuted instantiation: bool hb_bit_set_t::add_sorted_array<unsigned int>(unsigned int const*, unsigned int, unsigned int) |
268 | | template <typename T> |
269 | | bool add_sorted_array (const hb_sorted_array_t<const T>& arr) { return add_sorted_array (&arr, arr.len ()); } |
270 | | |
271 | | template <typename T> |
272 | | bool del_sorted_array (const T *array, unsigned int count, unsigned int stride=sizeof(T)) |
273 | 0 | { return set_sorted_array (false, array, count, stride); } Unexecuted instantiation: bool hb_bit_set_t::del_sorted_array<OT::HBGlyphID16>(OT::HBGlyphID16 const*, unsigned int, unsigned int) Unexecuted instantiation: bool hb_bit_set_t::del_sorted_array<unsigned int>(unsigned int const*, unsigned int, unsigned int) |
274 | | template <typename T> |
275 | | bool del_sorted_array (const hb_sorted_array_t<const T>& arr) { return del_sorted_array (&arr, arr.len ()); } |
276 | | |
277 | | void del (hb_codepoint_t g) |
278 | 0 | { |
279 | 0 | if (unlikely (!successful)) return; |
280 | 0 | page_t *page = page_for (g); |
281 | 0 | if (!page) |
282 | 0 | return; |
283 | 0 | dirty (); |
284 | 0 | page->del (g); |
285 | 0 | } |
286 | | |
287 | | private: |
288 | | void del_pages (int ds, int de) |
289 | 0 | { |
290 | 0 | if (ds <= de) |
291 | 0 | { |
292 | | // Pre-allocate the workspace that compact() will need so we can bail on allocation failure |
293 | | // before attempting to rewrite the page map. |
294 | 0 | hb_vector_t<unsigned> compact_workspace; |
295 | 0 | if (unlikely (!allocate_compact_workspace (compact_workspace))) return; |
296 | | |
297 | 0 | unsigned int write_index = 0; |
298 | 0 | for (unsigned int i = 0; i < page_map.length; i++) |
299 | 0 | { |
300 | 0 | int m = (int) page_map[i].major; |
301 | 0 | if (m < ds || de < m) |
302 | 0 | page_map[write_index++] = page_map[i]; |
303 | 0 | } |
304 | 0 | compact (compact_workspace, write_index); |
305 | 0 | resize (write_index); |
306 | 0 | } |
307 | 0 | } |
308 | | |
309 | | |
310 | | public: |
311 | | void del_range (hb_codepoint_t a, hb_codepoint_t b) |
312 | 0 | { |
313 | 0 | if (unlikely (!successful)) return; |
314 | 0 | if (unlikely (a > b || a == INVALID)) return; |
315 | 0 | dirty (); |
316 | 0 | unsigned int ma = get_major (a); |
317 | 0 | unsigned int mb = get_major (b); |
318 | | /* Delete pages from ds through de if ds <= de. */ |
319 | 0 | int ds = (a == major_start (ma))? (int) ma: (int) (ma + 1); |
320 | 0 | int de = (b + 1 == major_start (mb + 1))? (int) mb: ((int) mb - 1); |
321 | 0 | if (ds > de || (int) ma < ds) |
322 | 0 | { |
323 | 0 | page_t *page = page_for (a); |
324 | 0 | if (page) |
325 | 0 | { |
326 | 0 | if (ma == mb) |
327 | 0 | page->del_range (a, b); |
328 | 0 | else |
329 | 0 | page->del_range (a, major_start (ma + 1) - 1); |
330 | 0 | } |
331 | 0 | } |
332 | 0 | if (de < (int) mb && ma != mb) |
333 | 0 | { |
334 | 0 | page_t *page = page_for (b); |
335 | 0 | if (page) |
336 | 0 | page->del_range (major_start (mb), b); |
337 | 0 | } |
338 | 0 | del_pages (ds, de); |
339 | 0 | } |
340 | | |
341 | | bool get (hb_codepoint_t g) const |
342 | 0 | { |
343 | 0 | const page_t *page = page_for (g); |
344 | 0 | if (!page) |
345 | 0 | return false; |
346 | 0 | return page->get (g); |
347 | 0 | } |
348 | | |
349 | | /* Has interface. */ |
350 | 0 | bool operator [] (hb_codepoint_t k) const { return get (k); } |
351 | 0 | bool has (hb_codepoint_t k) const { return (*this)[k]; } |
352 | | /* Predicate. */ |
353 | 0 | bool operator () (hb_codepoint_t k) const { return has (k); } |
354 | | |
355 | | /* Sink interface. */ |
356 | | hb_bit_set_t& operator << (hb_codepoint_t v) |
357 | 0 | { add (v); return *this; } |
358 | | hb_bit_set_t& operator << (const hb_codepoint_pair_t& range) |
359 | 0 | { add_range (range.first, range.second); return *this; } |
360 | | |
361 | | bool intersects (hb_codepoint_t first, hb_codepoint_t last) const |
362 | 0 | { |
363 | 0 | hb_codepoint_t c = first - 1; |
364 | 0 | return next (&c) && c <= last; |
365 | 0 | } |
366 | | void set (const hb_bit_set_t &other, bool exact_size = false) |
367 | 0 | { |
368 | 0 | if (unlikely (!successful)) return; |
369 | 0 | unsigned int count = other.pages.length; |
370 | 0 | if (unlikely (!resize (count, false, exact_size))) |
371 | 0 | return; |
372 | 0 | population = other.population; |
373 | |
|
374 | 0 | page_map = other.page_map; |
375 | 0 | pages = other.pages; |
376 | 0 | } |
377 | | |
378 | | bool is_equal (const hb_bit_set_t &other) const |
379 | 0 | { |
380 | 0 | if (has_population () && other.has_population () && |
381 | 0 | population != other.population) |
382 | 0 | return false; |
383 | | |
384 | 0 | unsigned int na = pages.length; |
385 | 0 | unsigned int nb = other.pages.length; |
386 | |
|
387 | 0 | unsigned int a = 0, b = 0; |
388 | 0 | for (; a < na && b < nb; ) |
389 | 0 | { |
390 | 0 | if (page_at (a).is_empty ()) { a++; continue; } |
391 | 0 | if (other.page_at (b).is_empty ()) { b++; continue; } |
392 | 0 | if (page_map[a].major != other.page_map[b].major || |
393 | 0 | !page_at (a).is_equal (other.page_at (b))) |
394 | 0 | return false; |
395 | 0 | a++; |
396 | 0 | b++; |
397 | 0 | } |
398 | 0 | for (; a < na; a++) |
399 | 0 | if (!page_at (a).is_empty ()) { return false; } |
400 | 0 | for (; b < nb; b++) |
401 | 0 | if (!other.page_at (b).is_empty ()) { return false; } |
402 | | |
403 | 0 | return true; |
404 | 0 | } |
405 | | |
406 | | bool is_subset (const hb_bit_set_t &larger_set) const |
407 | 0 | { |
408 | 0 | if (has_population () && larger_set.has_population () && |
409 | 0 | population > larger_set.population) |
410 | 0 | return false; |
411 | | |
412 | 0 | uint32_t spi = 0; |
413 | 0 | for (uint32_t lpi = 0; spi < page_map.length && lpi < larger_set.page_map.length; lpi++) |
414 | 0 | { |
415 | 0 | uint32_t spm = page_map[spi].major; |
416 | 0 | uint32_t lpm = larger_set.page_map[lpi].major; |
417 | 0 | auto sp = page_at (spi); |
418 | |
|
419 | 0 | if (spm < lpm && !sp.is_empty ()) |
420 | 0 | return false; |
421 | | |
422 | 0 | if (lpm < spm) |
423 | 0 | continue; |
424 | | |
425 | 0 | auto lp = larger_set.page_at (lpi); |
426 | 0 | if (!sp.is_subset (lp)) |
427 | 0 | return false; |
428 | | |
429 | 0 | spi++; |
430 | 0 | } |
431 | | |
432 | 0 | while (spi < page_map.length) |
433 | 0 | if (!page_at (spi++).is_empty ()) |
434 | 0 | return false; |
435 | | |
436 | 0 | return true; |
437 | 0 | } |
438 | | |
439 | | private: |
440 | | bool allocate_compact_workspace (hb_vector_t<unsigned>& workspace) |
441 | 0 | { |
442 | 0 | if (unlikely (!workspace.resize_exact (pages.length))) |
443 | 0 | { |
444 | 0 | successful = false; |
445 | 0 | return false; |
446 | 0 | } |
447 | | |
448 | 0 | return true; |
449 | 0 | } |
450 | | |
451 | | /* |
452 | | * workspace should be a pre-sized vector allocated to hold at exactly pages.length |
453 | | * elements. |
454 | | */ |
455 | | void compact (hb_vector_t<unsigned>& workspace, |
456 | | unsigned int length) |
457 | 0 | { |
458 | 0 | assert(workspace.length == pages.length); |
459 | 0 | hb_vector_t<unsigned>& old_index_to_page_map_index = workspace; |
460 | |
|
461 | 0 | hb_fill (old_index_to_page_map_index.writer(), 0xFFFFFFFF); |
462 | 0 | for (unsigned i = 0; i < length; i++) |
463 | 0 | old_index_to_page_map_index[page_map[i].index] = i; |
464 | |
|
465 | 0 | compact_pages (old_index_to_page_map_index); |
466 | 0 | } |
467 | | void compact_pages (const hb_vector_t<unsigned>& old_index_to_page_map_index) |
468 | 0 | { |
469 | 0 | unsigned int write_index = 0; |
470 | 0 | for (unsigned int i = 0; i < pages.length; i++) |
471 | 0 | { |
472 | 0 | if (old_index_to_page_map_index[i] == 0xFFFFFFFF) continue; |
473 | | |
474 | 0 | if (write_index < i) |
475 | 0 | pages[write_index] = pages[i]; |
476 | |
|
477 | 0 | page_map[old_index_to_page_map_index[i]].index = write_index; |
478 | 0 | write_index++; |
479 | 0 | } |
480 | 0 | } |
481 | | public: |
482 | | |
483 | | void process_ (hb_bit_page_t::vector_t (*op) (const hb_bit_page_t::vector_t &, const hb_bit_page_t::vector_t &), |
484 | | bool passthru_left, bool passthru_right, |
485 | | const hb_bit_set_t &other) |
486 | 0 | { |
487 | 0 | if (unlikely (!successful)) return; |
488 | | |
489 | 0 | dirty (); |
490 | |
|
491 | 0 | unsigned int na = pages.length; |
492 | 0 | unsigned int nb = other.pages.length; |
493 | 0 | unsigned int next_page = na; |
494 | |
|
495 | 0 | unsigned int count = 0, newCount = 0; |
496 | 0 | unsigned int a = 0, b = 0; |
497 | 0 | unsigned int write_index = 0; |
498 | | |
499 | | // Pre-allocate the workspace that compact() will need so we can bail on allocation failure |
500 | | // before attempting to rewrite the page map. |
501 | 0 | hb_vector_t<unsigned> compact_workspace; |
502 | 0 | if (!passthru_left && unlikely (!allocate_compact_workspace (compact_workspace))) return; |
503 | | |
504 | 0 | for (; a < na && b < nb; ) |
505 | 0 | { |
506 | 0 | if (page_map[a].major == other.page_map[b].major) |
507 | 0 | { |
508 | 0 | if (!passthru_left) |
509 | 0 | { |
510 | | // Move page_map entries that we're keeping from the left side set |
511 | | // to the front of the page_map vector. This isn't necessary if |
512 | | // passthru_left is set since no left side pages will be removed |
513 | | // in that case. |
514 | 0 | if (write_index < a) |
515 | 0 | page_map[write_index] = page_map[a]; |
516 | 0 | write_index++; |
517 | 0 | } |
518 | |
|
519 | 0 | count++; |
520 | 0 | a++; |
521 | 0 | b++; |
522 | 0 | } |
523 | 0 | else if (page_map[a].major < other.page_map[b].major) |
524 | 0 | { |
525 | 0 | if (passthru_left) |
526 | 0 | count++; |
527 | 0 | a++; |
528 | 0 | } |
529 | 0 | else |
530 | 0 | { |
531 | 0 | if (passthru_right) |
532 | 0 | count++; |
533 | 0 | b++; |
534 | 0 | } |
535 | 0 | } |
536 | 0 | if (passthru_left) |
537 | 0 | count += na - a; |
538 | 0 | if (passthru_right) |
539 | 0 | count += nb - b; |
540 | |
|
541 | 0 | if (!passthru_left) |
542 | 0 | { |
543 | 0 | na = write_index; |
544 | 0 | next_page = write_index; |
545 | 0 | compact (compact_workspace, write_index); |
546 | 0 | } |
547 | |
|
548 | 0 | if (unlikely (!resize (count))) |
549 | 0 | return; |
550 | | |
551 | 0 | newCount = count; |
552 | | |
553 | | /* Process in-place backward. */ |
554 | 0 | a = na; |
555 | 0 | b = nb; |
556 | 0 | for (; a && b; ) |
557 | 0 | { |
558 | 0 | if (page_map.arrayZ[a - 1].major == other.page_map.arrayZ[b - 1].major) |
559 | 0 | { |
560 | 0 | a--; |
561 | 0 | b--; |
562 | 0 | count--; |
563 | 0 | page_map.arrayZ[count] = page_map.arrayZ[a]; |
564 | 0 | page_at (count).v = op (page_at (a).v, other.page_at (b).v); |
565 | 0 | page_at (count).dirty (); |
566 | 0 | } |
567 | 0 | else if (page_map.arrayZ[a - 1].major > other.page_map.arrayZ[b - 1].major) |
568 | 0 | { |
569 | 0 | a--; |
570 | 0 | if (passthru_left) |
571 | 0 | { |
572 | 0 | count--; |
573 | 0 | page_map.arrayZ[count] = page_map.arrayZ[a]; |
574 | 0 | } |
575 | 0 | } |
576 | 0 | else |
577 | 0 | { |
578 | 0 | b--; |
579 | 0 | if (passthru_right) |
580 | 0 | { |
581 | 0 | count--; |
582 | 0 | page_map.arrayZ[count].major = other.page_map.arrayZ[b].major; |
583 | 0 | page_map.arrayZ[count].index = next_page++; |
584 | 0 | page_at (count) = other.page_at (b); |
585 | 0 | } |
586 | 0 | } |
587 | 0 | } |
588 | 0 | if (passthru_left) |
589 | 0 | while (a) |
590 | 0 | { |
591 | 0 | a--; |
592 | 0 | count--; |
593 | 0 | page_map.arrayZ[count] = page_map.arrayZ[a]; |
594 | 0 | } |
595 | 0 | if (passthru_right) |
596 | 0 | while (b) |
597 | 0 | { |
598 | 0 | b--; |
599 | 0 | count--; |
600 | 0 | page_map.arrayZ[count].major = other.page_map.arrayZ[b].major; |
601 | 0 | page_map.arrayZ[count].index = next_page++; |
602 | 0 | page_at (count) = other.page_at (b); |
603 | 0 | } |
604 | 0 | assert (!count); |
605 | 0 | resize (newCount); |
606 | 0 | } |
607 | | template <typename Op> |
608 | | static hb_bit_page_t::vector_t |
609 | | op_ (const hb_bit_page_t::vector_t &a, const hb_bit_page_t::vector_t &b) |
610 | 0 | { return Op{} (a, b); } Unexecuted instantiation: hb-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_25>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_29>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_25>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-face.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_29>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_28>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-default.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-default.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-default.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-default.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-default.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-use.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-use.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-use.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-use.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-use.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_25>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-set.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-set.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_15>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-set.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-set.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-set.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-static.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-static.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-static.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-static.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_25>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-static.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_29>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-input.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-input.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-input.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-input.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-input.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_28>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_29>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_35>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_31>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: gsubgpos-context.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: gsubgpos-context.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: gsubgpos-context.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: gsubgpos-context.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: gsubgpos-context.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_28>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_28>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-aat-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-buffer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-buffer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-buffer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-buffer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-buffer.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-face-builder.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-face-builder.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-face-builder.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-face-builder.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-face-builder.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_26>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_25>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-font.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_29>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_28>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-layout.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-metrics.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-metrics.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-metrics.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-metrics.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-metrics.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_28>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-var.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-var.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-var.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-var.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-var.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff1.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff1.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff1.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff1.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff1.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff2.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_22>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff2.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff2.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff2.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_26>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff2.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_29>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-plan.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-plan.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-plan.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_25>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-plan.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_31>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-plan.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_16>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_17>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_18>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-map.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_24>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff1-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff1-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff1-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff1-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff1-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff2-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff2-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff2-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff2-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-cff2-table.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-color.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-color.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-color.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-color.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-ot-color.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff-common.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_19>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff-common.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_20>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff-common.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_21>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff-common.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_23>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) Unexecuted instantiation: hb-subset-cff-common.cc:hb_vector_size_t<unsigned long long, 64u> hb_bit_set_t::op_<$_27>(hb_vector_size_t<unsigned long long, 64u> const&, hb_vector_size_t<unsigned long long, 64u> const&) |
611 | | template <typename Op> |
612 | | void process (const Op& op, const hb_bit_set_t &other) |
613 | 0 | { |
614 | 0 | process_ (op_<Op>, op (1, 0), op (0, 1), other); |
615 | 0 | } Unexecuted instantiation: hb-face.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-face.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-face.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-face.cc:void hb_bit_set_t::process<$_25>($_25 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-face.cc:void hb_bit_set_t::process<$_29>($_29 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-face.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-face.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-face.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-face.cc:void hb_bit_set_t::process<$_25>($_25 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-face.cc:void hb_bit_set_t::process<$_29>($_29 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-arabic.cc:void hb_bit_set_t::process<$_28>($_28 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-default.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-default.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-default.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-default.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-default.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hangul.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-khmer.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-thai.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-use.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-use.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-use.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-use.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-use.cc:void hb_bit_set_t::process<$_25>($_25 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-set.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-set.cc:void hb_bit_set_t::process<$_15>($_15 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-set.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-set.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-set.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-static.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-static.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-static.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-static.cc:void hb_bit_set_t::process<$_25>($_25 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-static.cc:void hb_bit_set_t::process<$_29>($_29 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-input.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-input.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-input.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-input.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-input.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset.cc:void hb_bit_set_t::process<$_28>($_28 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset.cc:void hb_bit_set_t::process<$_29>($_29 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset.cc:void hb_bit_set_t::process<$_35>($_35 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset.cc:void hb_bit_set_t::process<$_31>($_31 const&, hb_bit_set_t const&) Unexecuted instantiation: gsubgpos-context.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: gsubgpos-context.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: gsubgpos-context.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: gsubgpos-context.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: gsubgpos-context.cc:void hb_bit_set_t::process<$_28>($_28 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-layout.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-layout.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-layout.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-layout.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-layout.cc:void hb_bit_set_t::process<$_28>($_28 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-map.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-map.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-map.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-map.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-aat-map.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-buffer.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-buffer.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-buffer.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-buffer.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-buffer.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-face-builder.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-face-builder.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-face-builder.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-face-builder.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-face-builder.cc:void hb_bit_set_t::process<$_26>($_26 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-font.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-font.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-font.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-font.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-font.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-font.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-font.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-font.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-font.cc:void hb_bit_set_t::process<$_25>($_25 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-font.cc:void hb_bit_set_t::process<$_29>($_29 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-layout.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-layout.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-layout.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-layout.cc:void hb_bit_set_t::process<$_28>($_28 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-layout.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-map.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-map.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-map.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-map.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-map.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-metrics.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-metrics.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-metrics.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-metrics.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-metrics.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-fallback.cc:void hb_bit_set_t::process<$_28>($_28 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shape-normalize.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-var.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-var.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-var.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-var.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-var.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff1.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff1.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff1.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff1.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff1.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff2.cc:void hb_bit_set_t::process<$_22>($_22 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff2.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff2.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff2.cc:void hb_bit_set_t::process<$_26>($_26 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff2.cc:void hb_bit_set_t::process<$_29>($_29 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-instancer-iup.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-plan.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-plan.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-plan.cc:void hb_bit_set_t::process<$_25>($_25 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-plan.cc:void hb_bit_set_t::process<$_31>($_31 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-plan.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-map.cc:void hb_bit_set_t::process<$_16>($_16 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-map.cc:void hb_bit_set_t::process<$_17>($_17 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-map.cc:void hb_bit_set_t::process<$_18>($_18 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-map.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-map.cc:void hb_bit_set_t::process<$_24>($_24 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff1-table.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-cff2-table.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-color.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-color.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-color.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-color.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-ot-color.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_bit_set_t::process<$_19>($_19 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_bit_set_t::process<$_20>($_20 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_bit_set_t::process<$_21>($_21 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_bit_set_t::process<$_23>($_23 const&, hb_bit_set_t const&) Unexecuted instantiation: hb-subset-cff-common.cc:void hb_bit_set_t::process<$_27>($_27 const&, hb_bit_set_t const&) |
616 | | |
617 | 0 | void union_ (const hb_bit_set_t &other) { process (hb_bitwise_or, other); } |
618 | 0 | void intersect (const hb_bit_set_t &other) { process (hb_bitwise_and, other); } |
619 | 0 | void subtract (const hb_bit_set_t &other) { process (hb_bitwise_gt, other); } |
620 | 0 | void symmetric_difference (const hb_bit_set_t &other) { process (hb_bitwise_xor, other); } |
621 | | |
622 | | bool next (hb_codepoint_t *codepoint) const |
623 | 0 | { |
624 | 0 | if (unlikely (*codepoint == INVALID)) { |
625 | 0 | *codepoint = get_min (); |
626 | 0 | return *codepoint != INVALID; |
627 | 0 | } |
628 | | |
629 | 0 | const auto* page_map_array = page_map.arrayZ; |
630 | 0 | unsigned int major = get_major (*codepoint); |
631 | 0 | unsigned int i = last_page_lookup; |
632 | |
|
633 | 0 | if (unlikely (i >= page_map.length || page_map_array[i].major != major)) |
634 | 0 | { |
635 | 0 | page_map.bfind (major, &i, HB_NOT_FOUND_STORE_CLOSEST); |
636 | 0 | if (i >= page_map.length) { |
637 | 0 | *codepoint = INVALID; |
638 | 0 | return false; |
639 | 0 | } |
640 | 0 | last_page_lookup = i; |
641 | 0 | } |
642 | | |
643 | 0 | const auto* pages_array = pages.arrayZ; |
644 | 0 | const page_map_t ¤t = page_map_array[i]; |
645 | 0 | if (likely (current.major == major)) |
646 | 0 | { |
647 | 0 | if (pages_array[current.index].next (codepoint)) |
648 | 0 | { |
649 | 0 | *codepoint += current.major * page_t::PAGE_BITS; |
650 | 0 | return true; |
651 | 0 | } |
652 | 0 | i++; |
653 | 0 | } |
654 | | |
655 | 0 | for (; i < page_map.length; i++) |
656 | 0 | { |
657 | 0 | const page_map_t ¤t = page_map_array[i]; |
658 | 0 | hb_codepoint_t m = pages_array[current.index].get_min (); |
659 | 0 | if (m != INVALID) |
660 | 0 | { |
661 | 0 | *codepoint = current.major * page_t::PAGE_BITS + m; |
662 | 0 | last_page_lookup = i; |
663 | 0 | return true; |
664 | 0 | } |
665 | 0 | } |
666 | 0 | *codepoint = INVALID; |
667 | 0 | return false; |
668 | 0 | } |
669 | | bool previous (hb_codepoint_t *codepoint) const |
670 | 0 | { |
671 | 0 | if (unlikely (*codepoint == INVALID)) { |
672 | 0 | *codepoint = get_max (); |
673 | 0 | return *codepoint != INVALID; |
674 | 0 | } |
675 | | |
676 | 0 | page_map_t map = {get_major (*codepoint), 0}; |
677 | 0 | unsigned int i; |
678 | 0 | page_map.bfind (map, &i, HB_NOT_FOUND_STORE_CLOSEST); |
679 | 0 | if (i < page_map.length && page_map.arrayZ[i].major == map.major) |
680 | 0 | { |
681 | 0 | if (pages[page_map.arrayZ[i].index].previous (codepoint)) |
682 | 0 | { |
683 | 0 | *codepoint += page_map.arrayZ[i].major * page_t::PAGE_BITS; |
684 | 0 | return true; |
685 | 0 | } |
686 | 0 | } |
687 | 0 | i--; |
688 | 0 | for (; (int) i >= 0; i--) |
689 | 0 | { |
690 | 0 | hb_codepoint_t m = pages.arrayZ[page_map.arrayZ[i].index].get_max (); |
691 | 0 | if (m != INVALID) |
692 | 0 | { |
693 | 0 | *codepoint = page_map.arrayZ[i].major * page_t::PAGE_BITS + m; |
694 | 0 | return true; |
695 | 0 | } |
696 | 0 | } |
697 | 0 | *codepoint = INVALID; |
698 | 0 | return false; |
699 | 0 | } |
700 | | bool next_range (hb_codepoint_t *first, hb_codepoint_t *last) const |
701 | 0 | { |
702 | 0 | hb_codepoint_t i; |
703 | |
|
704 | 0 | i = *last; |
705 | 0 | if (!next (&i)) |
706 | 0 | { |
707 | 0 | *last = *first = INVALID; |
708 | 0 | return false; |
709 | 0 | } |
710 | | |
711 | | /* TODO Speed up. */ |
712 | 0 | *last = *first = i; |
713 | 0 | while (next (&i) && i == *last + 1) |
714 | 0 | (*last)++; |
715 | |
|
716 | 0 | return true; |
717 | 0 | } |
718 | | bool previous_range (hb_codepoint_t *first, hb_codepoint_t *last) const |
719 | 0 | { |
720 | 0 | hb_codepoint_t i; |
721 | |
|
722 | 0 | i = *first; |
723 | 0 | if (!previous (&i)) |
724 | 0 | { |
725 | 0 | *last = *first = INVALID; |
726 | 0 | return false; |
727 | 0 | } |
728 | | |
729 | | /* TODO Speed up. */ |
730 | 0 | *last = *first = i; |
731 | 0 | while (previous (&i) && i == *first - 1) |
732 | 0 | (*first)--; |
733 | |
|
734 | 0 | return true; |
735 | 0 | } |
736 | | |
737 | | unsigned int next_many (hb_codepoint_t codepoint, |
738 | | hb_codepoint_t *out, |
739 | | unsigned int size) const |
740 | 0 | { |
741 | | // By default, start at the first bit of the first page of values. |
742 | 0 | unsigned int start_page = 0; |
743 | 0 | unsigned int start_page_value = 0; |
744 | 0 | if (unlikely (codepoint != INVALID)) |
745 | 0 | { |
746 | 0 | const auto* page_map_array = page_map.arrayZ; |
747 | 0 | unsigned int major = get_major (codepoint); |
748 | 0 | unsigned int i = last_page_lookup; |
749 | 0 | if (unlikely (i >= page_map.length || page_map_array[i].major != major)) |
750 | 0 | { |
751 | 0 | page_map.bfind (major, &i, HB_NOT_FOUND_STORE_CLOSEST); |
752 | 0 | if (i >= page_map.length) |
753 | 0 | return 0; // codepoint is greater than our max element. |
754 | 0 | } |
755 | 0 | start_page = i; |
756 | 0 | start_page_value = page_remainder (codepoint + 1); |
757 | 0 | if (unlikely (start_page_value == 0)) |
758 | 0 | { |
759 | | // The export-after value was last in the page. Start on next page. |
760 | 0 | start_page++; |
761 | 0 | start_page_value = 0; |
762 | 0 | } |
763 | 0 | } |
764 | | |
765 | 0 | unsigned int initial_size = size; |
766 | 0 | for (unsigned int i = start_page; i < page_map.length && size; i++) |
767 | 0 | { |
768 | 0 | uint32_t base = major_start (page_map[i].major); |
769 | 0 | unsigned int n = pages[page_map[i].index].write (base, start_page_value, out, size); |
770 | 0 | out += n; |
771 | 0 | size -= n; |
772 | 0 | start_page_value = 0; |
773 | 0 | } |
774 | 0 | return initial_size - size; |
775 | 0 | } |
776 | | |
777 | | unsigned int next_many_inverted (hb_codepoint_t codepoint, |
778 | | hb_codepoint_t *out, |
779 | | unsigned int size) const |
780 | 0 | { |
781 | 0 | unsigned int initial_size = size; |
782 | | // By default, start at the first bit of the first page of values. |
783 | 0 | unsigned int start_page = 0; |
784 | 0 | unsigned int start_page_value = 0; |
785 | 0 | if (unlikely (codepoint != INVALID)) |
786 | 0 | { |
787 | 0 | const auto* page_map_array = page_map.arrayZ; |
788 | 0 | unsigned int major = get_major (codepoint); |
789 | 0 | unsigned int i = last_page_lookup; |
790 | 0 | if (unlikely (i >= page_map.length || page_map_array[i].major != major)) |
791 | 0 | { |
792 | 0 | page_map.bfind(major, &i, HB_NOT_FOUND_STORE_CLOSEST); |
793 | 0 | if (unlikely (i >= page_map.length)) |
794 | 0 | { |
795 | | // codepoint is greater than our max element. |
796 | 0 | while (++codepoint != INVALID && size) |
797 | 0 | { |
798 | 0 | *out++ = codepoint; |
799 | 0 | size--; |
800 | 0 | } |
801 | 0 | return initial_size - size; |
802 | 0 | } |
803 | 0 | } |
804 | 0 | start_page = i; |
805 | 0 | start_page_value = page_remainder (codepoint + 1); |
806 | 0 | if (unlikely (start_page_value == 0)) |
807 | 0 | { |
808 | | // The export-after value was last in the page. Start on next page. |
809 | 0 | start_page++; |
810 | 0 | start_page_value = 0; |
811 | 0 | } |
812 | 0 | } |
813 | | |
814 | 0 | hb_codepoint_t next_value = codepoint + 1; |
815 | 0 | for (unsigned int i=start_page; i<page_map.length && size; i++) |
816 | 0 | { |
817 | 0 | uint32_t base = major_start (page_map[i].major); |
818 | 0 | unsigned int n = pages[page_map[i].index].write_inverted (base, start_page_value, out, size, &next_value); |
819 | 0 | out += n; |
820 | 0 | size -= n; |
821 | 0 | start_page_value = 0; |
822 | 0 | } |
823 | 0 | while (next_value < HB_SET_VALUE_INVALID && size) { |
824 | 0 | *out++ = next_value++; |
825 | 0 | size--; |
826 | 0 | } |
827 | 0 | return initial_size - size; |
828 | 0 | } |
829 | | |
830 | 0 | bool has_population () const { return population != UINT_MAX; } |
831 | | unsigned int get_population () const |
832 | 0 | { |
833 | 0 | if (has_population ()) |
834 | 0 | return population; |
835 | | |
836 | 0 | unsigned int pop = 0; |
837 | 0 | unsigned int count = pages.length; |
838 | 0 | for (unsigned int i = 0; i < count; i++) |
839 | 0 | pop += pages[i].get_population (); |
840 | |
|
841 | 0 | population = pop; |
842 | 0 | return pop; |
843 | 0 | } |
844 | | hb_codepoint_t get_min () const |
845 | 0 | { |
846 | 0 | unsigned count = pages.length; |
847 | 0 | for (unsigned i = 0; i < count; i++) |
848 | 0 | { |
849 | 0 | const auto& map = page_map[i]; |
850 | 0 | const auto& page = pages[map.index]; |
851 | |
|
852 | 0 | if (!page.is_empty ()) |
853 | 0 | return map.major * page_t::PAGE_BITS + page.get_min (); |
854 | 0 | } |
855 | 0 | return INVALID; |
856 | 0 | } |
857 | | hb_codepoint_t get_max () const |
858 | 0 | { |
859 | 0 | unsigned count = pages.length; |
860 | 0 | for (signed i = count - 1; i >= 0; i--) |
861 | 0 | { |
862 | 0 | const auto& map = page_map[(unsigned) i]; |
863 | 0 | const auto& page = pages[map.index]; |
864 | |
|
865 | 0 | if (!page.is_empty ()) |
866 | 0 | return map.major * page_t::PAGE_BITS + page.get_max (); |
867 | 0 | } |
868 | 0 | return INVALID; |
869 | 0 | } |
870 | | |
871 | | static constexpr hb_codepoint_t INVALID = page_t::INVALID; |
872 | | |
873 | | /* |
874 | | * Iterator implementation. |
875 | | */ |
876 | | struct iter_t : hb_iter_with_fallback_t<iter_t, hb_codepoint_t> |
877 | | { |
878 | | static constexpr bool is_sorted_iterator = true; |
879 | | static constexpr bool has_fast_len = true; |
880 | | iter_t (const hb_bit_set_t &s_ = Null (hb_bit_set_t), |
881 | | bool init = true) : s (&s_), v (INVALID), l(0) |
882 | 0 | { |
883 | 0 | if (init) |
884 | 0 | { |
885 | 0 | l = s->get_population () + 1; |
886 | 0 | __next__ (); |
887 | 0 | } |
888 | 0 | } |
889 | | |
890 | | typedef hb_codepoint_t __item_t__; |
891 | 0 | hb_codepoint_t __item__ () const { return v; } |
892 | 0 | bool __more__ () const { return v != INVALID; } |
893 | 0 | void __next__ () { s->next (&v); if (l) l--; } |
894 | 0 | void __prev__ () { s->previous (&v); } |
895 | 0 | unsigned __len__ () const { return l; } |
896 | 0 | iter_t end () const { return iter_t (*s, false); } |
897 | | bool operator != (const iter_t& o) const |
898 | 0 | { return s != o.s || v != o.v; } |
899 | | |
900 | | protected: |
901 | | const hb_bit_set_t *s; |
902 | | hb_codepoint_t v; |
903 | | unsigned l; |
904 | | }; |
905 | 0 | iter_t iter () const { return iter_t (*this); } |
906 | 0 | operator iter_t () const { return iter (); } |
907 | | |
908 | | protected: |
909 | | |
910 | | page_t *page_for (hb_codepoint_t g, bool insert = false) |
911 | 0 | { |
912 | 0 | unsigned major = get_major (g); |
913 | | |
914 | | /* The extra page_map length is necessary; can't just rely on vector here, |
915 | | * since the next check would be tricked because a null page also has |
916 | | * major==0, which we can't distinguish from an actually major==0 page... */ |
917 | 0 | unsigned i = last_page_lookup; |
918 | 0 | if (likely (i < page_map.length)) |
919 | 0 | { |
920 | 0 | auto &cached_page = page_map.arrayZ[i]; |
921 | 0 | if (cached_page.major == major) |
922 | 0 | return &pages.arrayZ[cached_page.index]; |
923 | 0 | } |
924 | | |
925 | 0 | page_map_t map = {major, pages.length}; |
926 | 0 | if (!page_map.bfind (map, &i, HB_NOT_FOUND_STORE_CLOSEST)) |
927 | 0 | { |
928 | 0 | if (!insert) |
929 | 0 | return nullptr; |
930 | | |
931 | 0 | if (unlikely (!resize (pages.length + 1))) |
932 | 0 | return nullptr; |
933 | | |
934 | 0 | pages.arrayZ[map.index].init0 (); |
935 | 0 | memmove (page_map.arrayZ + i + 1, |
936 | 0 | page_map.arrayZ + i, |
937 | 0 | (page_map.length - 1 - i) * page_map.item_size); |
938 | 0 | page_map.arrayZ[i] = map; |
939 | 0 | } |
940 | | |
941 | 0 | last_page_lookup = i; |
942 | 0 | return &pages.arrayZ[page_map.arrayZ[i].index]; |
943 | 0 | } |
944 | | const page_t *page_for (hb_codepoint_t g) const |
945 | 0 | { |
946 | 0 | unsigned major = get_major (g); |
947 | | |
948 | | /* The extra page_map length is necessary; can't just rely on vector here, |
949 | | * since the next check would be tricked because a null page also has |
950 | | * major==0, which we can't distinguish from an actually major==0 page... */ |
951 | 0 | unsigned i = last_page_lookup; |
952 | 0 | if (likely (i < page_map.length)) |
953 | 0 | { |
954 | 0 | auto &cached_page = page_map.arrayZ[i]; |
955 | 0 | if (cached_page.major == major) |
956 | 0 | return &pages.arrayZ[cached_page.index]; |
957 | 0 | } |
958 | | |
959 | 0 | page_map_t key = {major}; |
960 | 0 | if (!page_map.bfind (key, &i)) |
961 | 0 | return nullptr; |
962 | | |
963 | 0 | last_page_lookup = i; |
964 | 0 | return &pages.arrayZ[page_map[i].index]; |
965 | 0 | } |
966 | | page_t &page_at (unsigned int i) |
967 | 0 | { |
968 | 0 | assert (i < page_map.length); |
969 | 0 | return pages.arrayZ[page_map.arrayZ[i].index]; |
970 | 0 | } |
971 | | const page_t &page_at (unsigned int i) const |
972 | 0 | { |
973 | 0 | assert (i < page_map.length); |
974 | 0 | return pages.arrayZ[page_map.arrayZ[i].index]; |
975 | 0 | } |
976 | 0 | unsigned int get_major (hb_codepoint_t g) const { return g >> page_t::PAGE_BITS_LOG_2; } |
977 | 0 | unsigned int page_remainder (hb_codepoint_t g) const { return g & page_t::PAGE_BITMASK; } |
978 | 0 | hb_codepoint_t major_start (unsigned int major) const { return major << page_t::PAGE_BITS_LOG_2; } |
979 | | }; |
980 | | |
981 | | |
982 | | #endif /* HB_BIT_SET_HH */ |