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