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