/src/harfbuzz/src/hb-atomic.hh
Line | Count | Source |
1 | | /* |
2 | | * Copyright © 2007 Chris Wilson |
3 | | * Copyright © 2009,2010 Red Hat, Inc. |
4 | | * Copyright © 2011,2012 Google, Inc. |
5 | | * |
6 | | * This is part of HarfBuzz, a text shaping library. |
7 | | * |
8 | | * Permission is hereby granted, without written agreement and without |
9 | | * license or royalty fees, to use, copy, modify, and distribute this |
10 | | * software and its documentation for any purpose, provided that the |
11 | | * above copyright notice and the following two paragraphs appear in |
12 | | * all copies of this software. |
13 | | * |
14 | | * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR |
15 | | * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES |
16 | | * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN |
17 | | * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
18 | | * DAMAGE. |
19 | | * |
20 | | * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, |
21 | | * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND |
22 | | * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS |
23 | | * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO |
24 | | * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
25 | | * |
26 | | * Contributor(s): |
27 | | * Chris Wilson <chris@chris-wilson.co.uk> |
28 | | * Red Hat Author(s): Behdad Esfahbod |
29 | | * Google Author(s): Behdad Esfahbod |
30 | | */ |
31 | | |
32 | | #ifndef HB_ATOMIC_HH |
33 | | #define HB_ATOMIC_HH |
34 | | |
35 | | #include "hb.hh" |
36 | | #include "hb-meta.hh" |
37 | | |
38 | | |
39 | | /* |
40 | | * Atomic integers and pointers. |
41 | | */ |
42 | | |
43 | | /* We need external help for these */ |
44 | | |
45 | | #if defined(hb_atomic_int_impl_add) \ |
46 | | && defined(hb_atomic_ptr_impl_get) \ |
47 | | && defined(hb_atomic_ptr_impl_cmpexch) |
48 | | |
49 | | /* Defined externally, i.e. in config.h. */ |
50 | | |
51 | | |
52 | | #elif !defined(HB_NO_MT) && defined(__ATOMIC_ACQUIRE) |
53 | | |
54 | | /* C++11-style GCC primitives. We prefer these as they don't require linking to libstdc++ / libc++. */ |
55 | | |
56 | | #define _hb_memory_barrier() __sync_synchronize () |
57 | | |
58 | 2.06M | #define hb_atomic_int_impl_add(AI, V) __atomic_fetch_add ((AI), (V), __ATOMIC_ACQ_REL) |
59 | 1.00M | #define hb_atomic_int_impl_set_relaxed(AI, V) __atomic_store_n ((AI), (V), __ATOMIC_RELAXED) |
60 | 0 | #define hb_atomic_int_impl_set(AI, V) __atomic_store_n ((AI), (V), __ATOMIC_RELEASE) |
61 | 8.96M | #define hb_atomic_int_impl_get_relaxed(AI) __atomic_load_n ((AI), __ATOMIC_RELAXED) |
62 | 0 | #define hb_atomic_int_impl_get(AI) __atomic_load_n ((AI), __ATOMIC_ACQUIRE) |
63 | | |
64 | 1.67M | #define hb_atomic_ptr_impl_set_relaxed(P, V) __atomic_store_n ((P), (V), __ATOMIC_RELAXED) |
65 | 22.9k | #define hb_atomic_ptr_impl_get_relaxed(P) __atomic_load_n ((P), __ATOMIC_RELAXED) |
66 | 3.98M | #define hb_atomic_ptr_impl_get(P) __atomic_load_n ((P), __ATOMIC_ACQUIRE) |
67 | | static inline bool |
68 | | _hb_atomic_ptr_impl_cmplexch (const void **P, const void *O_, const void *N) |
69 | 141k | { |
70 | 141k | const void *O = O_; // Need lvalue |
71 | 141k | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); |
72 | 141k | } Unexecuted instantiation: hb-blob.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-buffer.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-common.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 28 | { | 70 | 28 | const void *O = O_; // Need lvalue | 71 | 28 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 28 | } |
Unexecuted instantiation: hb-face.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-face-builder.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-fallback-shape.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-font.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 10.2k | { | 70 | 10.2k | const void *O = O_; // Need lvalue | 71 | 10.2k | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 10.2k | } |
Unexecuted instantiation: hb-number.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-face.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-ot-font.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 1.75k | { | 70 | 1.75k | const void *O = O_; // Need lvalue | 71 | 1.75k | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 1.75k | } |
Unexecuted instantiation: hb-outline.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: VARC.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-metrics.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-ot-shape.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 1.75k | { | 70 | 1.75k | const void *O = O_; // Need lvalue | 71 | 1.75k | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 1.75k | } |
hb-ot-var.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 10.2k | { | 70 | 10.2k | const void *O = O_; // Need lvalue | 71 | 10.2k | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 10.2k | } |
Unexecuted instantiation: hb-set.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-shape-plan.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 104k | { | 70 | 104k | const void *O = O_; // Need lvalue | 71 | 104k | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 104k | } |
Unexecuted instantiation: hb-shape.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-shaper.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 1 | { | 70 | 1 | const void *O = O_; // Need lvalue | 71 | 1 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 1 | } |
Unexecuted instantiation: hb-static.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-unicode.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ft.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-aat-layout.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 8.95k | { | 70 | 8.95k | const void *O = O_; // Need lvalue | 71 | 8.95k | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 8.95k | } |
Unexecuted instantiation: hb-aat-map.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-buffer-verify.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-draw.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-paint.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-paint-bounded.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-paint-extents.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-cff1-table.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-cff2-table.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-ot-layout.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 3.75k | { | 70 | 3.75k | const void *O = O_; // Need lvalue | 71 | 3.75k | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 3.75k | } |
Unexecuted instantiation: hb-ot-map.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-ot-shaper-arabic.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 3 | { | 70 | 3 | const void *O = O_; // Need lvalue | 71 | 3 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 3 | } |
Unexecuted instantiation: hb-ot-shaper-default.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-hangul.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-hebrew.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-indic.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-khmer.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-myanmar.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-syllabic.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-thai.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-use.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shape-fallback.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shape-normalize.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-tag.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-ucd.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 2 | { | 70 | 2 | const void *O = O_; // Need lvalue | 71 | 2 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 2 | } |
Unexecuted instantiation: hb-buffer-serialize.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-ot-shaper-indic-table.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) |
73 | 141k | #define hb_atomic_ptr_impl_cmpexch(P,O,N) _hb_atomic_ptr_impl_cmplexch ((const void **) (P), (O), (N)) |
74 | | |
75 | | |
76 | | #elif !defined(HB_NO_MT) |
77 | | |
78 | | /* C++11 atomics. */ |
79 | | |
80 | | #include <atomic> |
81 | | |
82 | | #define HB_STL_ATOMIC_IMPL |
83 | | |
84 | | #define _hb_memory_r_barrier() std::atomic_thread_fence(std::memory_order_acquire) |
85 | | #define _hb_memory_w_barrier() std::atomic_thread_fence(std::memory_order_release) |
86 | | |
87 | | #else /* defined(HB_NO_MT) */ |
88 | | |
89 | | #define hb_atomic_int_impl_add(AI, V) ((*(AI) += (V)) - (V)) |
90 | | #define _hb_memory_barrier() do {} while (0) |
91 | | #define hb_atomic_ptr_impl_cmpexch(P,O,N) (* (void **) (P) == (void *) (O) ? (* (void **) (P) = (void *) (N), true) : false) |
92 | | |
93 | | #endif |
94 | | |
95 | | |
96 | | /* This should never be disabled, even under HB_NO_MT. |
97 | | * except that MSVC gives me an internal compiler error, so disabled there. |
98 | | * |
99 | | * https://github.com/harfbuzz/harfbuzz/pull/4119 |
100 | | */ |
101 | | #ifndef _hb_compiler_memory_r_barrier |
102 | | #if defined(__ATOMIC_ACQUIRE) // gcc-like |
103 | 7.68M | static inline void _hb_compiler_memory_r_barrier () { asm volatile("": : :"memory"); } Unexecuted instantiation: hb-blob.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-buffer.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-common.cc:_hb_compiler_memory_r_barrier() hb-face.cc:_hb_compiler_memory_r_barrier() Line | Count | Source | 103 | 2.42M | static inline void _hb_compiler_memory_r_barrier () { asm volatile("": : :"memory"); } |
Unexecuted instantiation: hb-face-builder.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-fallback-shape.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-font.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-number.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-face.cc:_hb_compiler_memory_r_barrier() hb-ot-font.cc:_hb_compiler_memory_r_barrier() Line | Count | Source | 103 | 11.2k | static inline void _hb_compiler_memory_r_barrier () { asm volatile("": : :"memory"); } |
Unexecuted instantiation: hb-outline.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: VARC.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-metrics.cc:_hb_compiler_memory_r_barrier() hb-ot-shape.cc:_hb_compiler_memory_r_barrier() Line | Count | Source | 103 | 576 | static inline void _hb_compiler_memory_r_barrier () { asm volatile("": : :"memory"); } |
Unexecuted instantiation: hb-ot-var.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-set.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-shape-plan.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-shape.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-shaper.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-static.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-unicode.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ft.cc:_hb_compiler_memory_r_barrier() hb-aat-layout.cc:_hb_compiler_memory_r_barrier() Line | Count | Source | 103 | 4.98M | static inline void _hb_compiler_memory_r_barrier () { asm volatile("": : :"memory"); } |
Unexecuted instantiation: hb-aat-map.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-buffer-verify.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-draw.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-paint.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-paint-bounded.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-paint-extents.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-cff1-table.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-cff2-table.cc:_hb_compiler_memory_r_barrier() hb-ot-layout.cc:_hb_compiler_memory_r_barrier() Line | Count | Source | 103 | 262k | static inline void _hb_compiler_memory_r_barrier () { asm volatile("": : :"memory"); } |
Unexecuted instantiation: hb-ot-map.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-arabic.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-default.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-hangul.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-hebrew.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-indic.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-khmer.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-myanmar.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-syllabic.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-thai.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-use.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shape-fallback.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shape-normalize.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-tag.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ucd.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-buffer-serialize.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-shaper-indic-table.cc:_hb_compiler_memory_r_barrier() |
104 | | #elif !defined(_MSC_VER) |
105 | | #include <atomic> |
106 | | #define _hb_compiler_memory_r_barrier() std::atomic_signal_fence (std::memory_order_acquire) |
107 | | #else |
108 | | static inline void _hb_compiler_memory_r_barrier () {} |
109 | | #endif |
110 | | #endif |
111 | | |
112 | | |
113 | | |
114 | | #ifndef _hb_memory_r_barrier |
115 | | #define _hb_memory_r_barrier() _hb_memory_barrier () |
116 | | #endif |
117 | | #ifndef _hb_memory_w_barrier |
118 | | #define _hb_memory_w_barrier() _hb_memory_barrier () |
119 | | #endif |
120 | | #ifndef hb_atomic_int_impl_set_relaxed |
121 | | #define hb_atomic_int_impl_set_relaxed(AI, V) (*(AI) = (V)) |
122 | | #endif |
123 | | #ifndef hb_atomic_int_impl_get_relaxed |
124 | | #define hb_atomic_int_impl_get_relaxed(AI) (*(AI)) |
125 | | #endif |
126 | | |
127 | | #ifndef hb_atomic_ptr_impl_set_relaxed |
128 | | #define hb_atomic_ptr_impl_set_relaxed(P, V) (*(P) = (V)) |
129 | | #endif |
130 | | #ifndef hb_atomic_ptr_impl_get_relaxed |
131 | | #define hb_atomic_ptr_impl_get_relaxed(P) (*(P)) |
132 | | #endif |
133 | | #ifndef hb_atomic_int_impl_set |
134 | | template <typename T> |
135 | | inline void hb_atomic_int_impl_set (T *AI, T v) { _hb_memory_w_barrier (); *AI = v; } |
136 | | #endif |
137 | | #ifndef hb_atomic_int_impl_get |
138 | | template <typename T> |
139 | | inline T hb_atomic_int_impl_get (const T *AI) { T v = *AI; _hb_memory_r_barrier (); return v; } |
140 | | #endif |
141 | | #ifndef hb_atomic_ptr_impl_get |
142 | | inline void *hb_atomic_ptr_impl_get (void ** const P) { void *v = *P; _hb_memory_r_barrier (); return v; } |
143 | | #endif |
144 | | |
145 | | #ifdef HB_STL_ATOMIC_IMPL |
146 | | template <typename T> |
147 | | struct hb_atomic_t |
148 | | { |
149 | | hb_atomic_t () = default; |
150 | | constexpr hb_atomic_t (T v) : v (v) {} |
151 | | constexpr hb_atomic_t (const hb_atomic_t& o) : v (o.get_relaxed ()) {} |
152 | | constexpr hb_atomic_t (hb_atomic_t&& o) : v (o.get_relaxed ()) { o.set_relaxed ({}); } |
153 | | |
154 | | hb_atomic_t &operator= (const hb_atomic_t& o) { set_relaxed (o.get_relaxed ()); return *this; } |
155 | | hb_atomic_t &operator= (hb_atomic_t&& o){ set_relaxed (o.get_relaxed ()); o.set_relaxed ({}); return *this; } |
156 | | hb_atomic_t &operator= (T v_) |
157 | | { |
158 | | set_relaxed (v_); |
159 | | return *this; |
160 | | } |
161 | | operator T () const { return get_relaxed (); } |
162 | | |
163 | | void set_relaxed (T v_) { v.store (v_, std::memory_order_relaxed); } |
164 | | void set_release (T v_) { v.store (v_, std::memory_order_release); } |
165 | | T get_relaxed () const { return v.load (std::memory_order_relaxed); } |
166 | | T get_acquire () const { return v.load (std::memory_order_acquire); } |
167 | | T inc () { return v.fetch_add (1, std::memory_order_acq_rel); } |
168 | | T dec () { return v.fetch_add (-1, std::memory_order_acq_rel); } |
169 | | |
170 | | int operator++ (int) { return inc (); } |
171 | | int operator-- (int) { return dec (); } |
172 | | long operator|= (long v_) |
173 | | { |
174 | | set_relaxed (get_relaxed () | v_); |
175 | | return *this; |
176 | | } |
177 | | |
178 | | friend void swap (hb_atomic_t &a, hb_atomic_t &b) noexcept |
179 | | { |
180 | | T v = a.get_acquire (); |
181 | | a.set_relaxed (b.get_acquire ()); |
182 | | b.set_relaxed (v); |
183 | | } |
184 | | |
185 | | std::atomic<T> v = 0; |
186 | | }; |
187 | | |
188 | | template <typename T> |
189 | | struct hb_atomic_t<T *> |
190 | | { |
191 | | hb_atomic_t () = default; |
192 | | constexpr hb_atomic_t (T *v) : v (v) {} |
193 | | hb_atomic_t (const hb_atomic_t &other) = delete; |
194 | | |
195 | | void init (T *v_ = nullptr) { set_relaxed (v_); } |
196 | | void set_relaxed (T *v_) { v.store (v_, std::memory_order_relaxed); } |
197 | | T *get_relaxed () const { return v.load (std::memory_order_relaxed); } |
198 | | T *get_acquire () const { return v.load (std::memory_order_acquire); } |
199 | | bool cmpexch (T *old, T *new_) { return v.compare_exchange_weak (old, new_, std::memory_order_acq_rel, std::memory_order_relaxed); } |
200 | | |
201 | | operator bool () const { return get_acquire () != nullptr; } |
202 | | T *operator->() const { return get_acquire (); } |
203 | | template <typename C> |
204 | | operator C * () const |
205 | | { |
206 | | return get_acquire (); |
207 | | } |
208 | | |
209 | | friend void swap (hb_atomic_t &a, hb_atomic_t &b) noexcept |
210 | | { |
211 | | T *p = a.get_acquire (); |
212 | | a.set_relaxed (b.get_acquire ()); |
213 | | b.set_relaxed (p); |
214 | | } |
215 | | |
216 | | std::atomic<T *> v = nullptr; |
217 | | }; |
218 | | |
219 | | #else |
220 | | |
221 | | template <typename T> |
222 | | struct hb_atomic_t |
223 | | { |
224 | 853k | hb_atomic_t () = default; hb_atomic_t<int>::hb_atomic_t() Line | Count | Source | 224 | 156k | hb_atomic_t () = default; |
hb_atomic_t<unsigned int>::hb_atomic_t() Line | Count | Source | 224 | 242k | hb_atomic_t () = default; |
hb_atomic_t<unsigned short>::hb_atomic_t() Line | Count | Source | 224 | 454k | hb_atomic_t () = default; |
|
225 | 156k | constexpr hb_atomic_t (T v) : v (v) {} hb_atomic_t<bool>::hb_atomic_t(bool) Line | Count | Source | 225 | 156k | constexpr hb_atomic_t (T v) : v (v) {} |
hb_atomic_t<unsigned int>::hb_atomic_t(unsigned int) Line | Count | Source | 225 | 108 | constexpr hb_atomic_t (T v) : v (v) {} |
|
226 | | |
227 | 1.00M | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; } hb_atomic_t<int>::operator=(int) Line | Count | Source | 227 | 312k | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; } |
hb_atomic_t<bool>::operator=(bool) Line | Count | Source | 227 | 183k | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; } |
hb_atomic_t<unsigned int>::operator=(unsigned int) Line | Count | Source | 227 | 38.1k | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; } |
hb_atomic_t<unsigned short>::operator=(unsigned short) Line | Count | Source | 227 | 470k | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; } |
|
228 | 8.96M | operator T () const { return get_relaxed (); } hb_atomic_t<int>::operator int() const Line | Count | Source | 228 | 5.65M | operator T () const { return get_relaxed (); } |
hb_atomic_t<bool>::operator bool() const Line | Count | Source | 228 | 1.24M | operator T () const { return get_relaxed (); } |
hb_atomic_t<unsigned int>::operator unsigned int() const Line | Count | Source | 228 | 1.39M | operator T () const { return get_relaxed (); } |
hb_atomic_t<unsigned short>::operator unsigned short() const Line | Count | Source | 228 | 662k | operator T () const { return get_relaxed (); } |
|
229 | | |
230 | 1.00M | void set_relaxed (T v_) { hb_atomic_int_impl_set_relaxed (&v, v_); } hb_atomic_t<int>::set_relaxed(int) Line | Count | Source | 230 | 312k | void set_relaxed (T v_) { hb_atomic_int_impl_set_relaxed (&v, v_); } |
hb_atomic_t<bool>::set_relaxed(bool) Line | Count | Source | 230 | 183k | void set_relaxed (T v_) { hb_atomic_int_impl_set_relaxed (&v, v_); } |
hb_atomic_t<unsigned int>::set_relaxed(unsigned int) Line | Count | Source | 230 | 38.1k | void set_relaxed (T v_) { hb_atomic_int_impl_set_relaxed (&v, v_); } |
hb_atomic_t<unsigned short>::set_relaxed(unsigned short) Line | Count | Source | 230 | 470k | void set_relaxed (T v_) { hb_atomic_int_impl_set_relaxed (&v, v_); } |
|
231 | 0 | void set_release (T v_) { hb_atomic_int_impl_set (&v, v_); } Unexecuted instantiation: hb_atomic_t<int>::set_release(int) Unexecuted instantiation: hb_atomic_t<unsigned int>::set_release(unsigned int) |
232 | 8.96M | T get_relaxed () const { return hb_atomic_int_impl_get_relaxed (&v); } hb_atomic_t<int>::get_relaxed() const Line | Count | Source | 232 | 5.65M | T get_relaxed () const { return hb_atomic_int_impl_get_relaxed (&v); } |
hb_atomic_t<bool>::get_relaxed() const Line | Count | Source | 232 | 1.24M | T get_relaxed () const { return hb_atomic_int_impl_get_relaxed (&v); } |
hb_atomic_t<unsigned int>::get_relaxed() const Line | Count | Source | 232 | 1.39M | T get_relaxed () const { return hb_atomic_int_impl_get_relaxed (&v); } |
hb_atomic_t<unsigned short>::get_relaxed() const Line | Count | Source | 232 | 662k | T get_relaxed () const { return hb_atomic_int_impl_get_relaxed (&v); } |
|
233 | 0 | T get_acquire () const { return hb_atomic_int_impl_get (&v); } Unexecuted instantiation: hb_atomic_t<unsigned int>::get_acquire() const Unexecuted instantiation: hb_atomic_t<int>::get_acquire() const |
234 | 1.16M | T inc () { return hb_atomic_int_impl_add (&v, 1); } Line | Count | Source | 234 | 744k | T inc () { return hb_atomic_int_impl_add (&v, 1); } |
hb_atomic_t<unsigned int>::inc() Line | Count | Source | 234 | 423k | T inc () { return hb_atomic_int_impl_add (&v, 1); } |
|
235 | 896k | T dec () { return hb_atomic_int_impl_add (&v, -1); } |
236 | | |
237 | 423k | int operator ++ (int) { return inc (); } |
238 | | int operator -- (int) { return dec (); } |
239 | | long operator |= (long v_) { set_relaxed (get_relaxed () | v_); return *this; } |
240 | | |
241 | | T v = 0; |
242 | | }; |
243 | | |
244 | | template <typename T> |
245 | | struct hb_atomic_t<T*> |
246 | | { |
247 | 841k | hb_atomic_t () = default; hb_atomic_t<hb_user_data_array_t*>::hb_atomic_t() Line | Count | Source | 247 | 156k | hb_atomic_t () = default; |
hb_atomic_t<hb_ot_face_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<hb_fallback_face_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<hb_blob_t*>::hb_atomic_t() Line | Count | Source | 247 | 193k | hb_atomic_t () = default; |
hb_atomic_t<OT::cmap_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::hmtx_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::post_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::name_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::meta_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::vmtx_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::glyf_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::cff1_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::cff2_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::gvar_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::VARC_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::kern_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::GDEF_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::GSUB_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::GPOS_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<AAT::morx_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<AAT::mort_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<AAT::kerx_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::COLR_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::CBDT_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::sbix_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<OT::SVG_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<hb_face_t::plan_node_t*>::hb_atomic_t() Line | Count | Source | 247 | 10.2k | hb_atomic_t () = default; |
hb_atomic_t<hb_ot_font_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 111k | hb_atomic_t () = default; |
hb_atomic_t<hb_fallback_font_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 111k | hb_atomic_t () = default; |
Unexecuted instantiation: hb_atomic_t<hb_glyf_scratch_t*>::hb_atomic_t() Unexecuted instantiation: hb_atomic_t<OT::hb_varc_scratch_t*>::hb_atomic_t() Unexecuted instantiation: hb_atomic_t<hb_vector_t<float, false>*>::hb_atomic_t() Unexecuted instantiation: hb_atomic_t<hb_vector_t<OT::cff1::accelerator_t::gname_t, true>*>::hb_atomic_t() Unexecuted instantiation: hb_atomic_t<hb_colr_scratch_t*>::hb_atomic_t() Unexecuted instantiation: hb_atomic_t<unsigned short*>::hb_atomic_t() hb_atomic_t<hb_bit_set_t*>::hb_atomic_t() Line | Count | Source | 247 | 14.0k | hb_atomic_t () = default; |
|
248 | | constexpr hb_atomic_t (T* v) : v (v) {} |
249 | | hb_atomic_t (const hb_atomic_t &other) = delete; |
250 | | |
251 | 156k | void init (T* v_ = nullptr) { set_relaxed (v_); } |
252 | 1.67M | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } hb_atomic_t<hb_user_data_array_t*>::set_relaxed(hb_user_data_array_t*) Line | Count | Source | 252 | 156k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<hb_ot_font_data_t*>::set_relaxed(hb_ot_font_data_t*) Line | Count | Source | 252 | 534k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<hb_fallback_font_data_t*>::set_relaxed(hb_fallback_font_data_t*) Line | Count | Source | 252 | 534k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<hb_ot_face_data_t*>::set_relaxed(hb_ot_face_data_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<hb_fallback_face_data_t*>::set_relaxed(hb_fallback_face_data_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<hb_blob_t*>::set_relaxed(hb_blob_t*) Line | Count | Source | 252 | 193k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::cmap_accelerator_t*>::set_relaxed(OT::cmap_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::hmtx_accelerator_t*>::set_relaxed(OT::hmtx_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::post_accelerator_t*>::set_relaxed(OT::post_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::name_accelerator_t*>::set_relaxed(OT::name_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::meta_accelerator_t*>::set_relaxed(OT::meta_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::vmtx_accelerator_t*>::set_relaxed(OT::vmtx_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::glyf_accelerator_t*>::set_relaxed(OT::glyf_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::cff1_accelerator_t*>::set_relaxed(OT::cff1_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::cff2_accelerator_t*>::set_relaxed(OT::cff2_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::gvar_accelerator_t*>::set_relaxed(OT::gvar_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::VARC_accelerator_t*>::set_relaxed(OT::VARC_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::kern_accelerator_t*>::set_relaxed(OT::kern_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::GDEF_accelerator_t*>::set_relaxed(OT::GDEF_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::GSUB_accelerator_t*>::set_relaxed(OT::GSUB_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::GPOS_accelerator_t*>::set_relaxed(OT::GPOS_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<AAT::morx_accelerator_t*>::set_relaxed(AAT::morx_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<AAT::mort_accelerator_t*>::set_relaxed(AAT::mort_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<AAT::kerx_accelerator_t*>::set_relaxed(AAT::kerx_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::COLR_accelerator_t*>::set_relaxed(OT::COLR_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::CBDT_accelerator_t*>::set_relaxed(OT::CBDT_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::sbix_accelerator_t*>::set_relaxed(OT::sbix_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<OT::SVG_accelerator_t*>::set_relaxed(OT::SVG_accelerator_t*) Line | Count | Source | 252 | 10.2k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
Unexecuted instantiation: hb_atomic_t<hb_vector_t<OT::cff1::accelerator_t::gname_t, true>*>::set_relaxed(hb_vector_t<OT::cff1::accelerator_t::gname_t, true>*) hb_atomic_t<hb_bit_set_t*>::set_relaxed(hb_bit_set_t*) Line | Count | Source | 252 | 7.00k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
|
253 | 22.9k | T *get_relaxed () const { return (T *) hb_atomic_ptr_impl_get_relaxed (&v); } Unexecuted instantiation: hb_atomic_t<hb_glyf_scratch_t*>::get_relaxed() const Unexecuted instantiation: hb_atomic_t<hb_vector_t<OT::cff1::accelerator_t::gname_t, true>*>::get_relaxed() const Unexecuted instantiation: hb_atomic_t<OT::hb_varc_scratch_t*>::get_relaxed() const hb_atomic_t<hb_bit_set_t*>::get_relaxed() const Line | Count | Source | 253 | 17.5k | T *get_relaxed () const { return (T *) hb_atomic_ptr_impl_get_relaxed (&v); } |
hb_atomic_t<OT::hb_ot_layout_lookup_accelerator_t*>::get_relaxed() const Line | Count | Source | 253 | 5.47k | T *get_relaxed () const { return (T *) hb_atomic_ptr_impl_get_relaxed (&v); } |
Unexecuted instantiation: hb_atomic_t<hb_colr_scratch_t*>::get_relaxed() const Unexecuted instantiation: hb_atomic_t<hb_vector_t<CFF::code_pair_t, false>*>::get_relaxed() const Unexecuted instantiation: hb_atomic_t<OT::GPOS_accelerator_t*>::get_relaxed() const Unexecuted instantiation: hb_atomic_t<OT::GSUB_accelerator_t*>::get_relaxed() const |
254 | 3.98M | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } hb_atomic_t<hb_user_data_array_t*>::get_acquire() const Line | Count | Source | 254 | 156k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_ot_font_data_t*>::get_acquire() const Line | Count | Source | 254 | 837k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_fallback_font_data_t*>::get_acquire() const Line | Count | Source | 254 | 534k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_language_item_t*>::get_acquire() const Line | Count | Source | 254 | 69.8k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<__locale_struct*>::get_acquire() const hb_atomic_t<hb_language_impl_t const*>::get_acquire() const Line | Count | Source | 254 | 31.1k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<char const*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<char const**>::get_acquire() const hb_atomic_t<hb_face_t::plan_node_t*>::get_acquire() const Line | Count | Source | 254 | 111k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_ot_face_data_t*>::get_acquire() const Line | Count | Source | 254 | 113k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_fallback_face_data_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::cmap_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_blob_t*>::get_acquire() const Line | Count | Source | 254 | 228k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::hmtx_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<unsigned short*>::get_acquire() const hb_atomic_t<OT::post_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::name_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::meta_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::vmtx_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::glyf_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::cff1_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<hb_vector_t<float, false>*>::get_acquire() const hb_atomic_t<OT::cff2_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::gvar_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::VARC_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::kern_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 12.4k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::GDEF_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 825k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::GSUB_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 227k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::GPOS_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 225k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<AAT::hb_aat_layout_chain_accelerator_t*>::get_acquire() const hb_atomic_t<AAT::morx_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 12.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<AAT::mort_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 12.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<AAT::kerx_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 12.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::COLR_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::CBDT_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::sbix_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::SVG_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<hb_glyf_scratch_t*>::get_acquire() const Unexecuted instantiation: hb_atomic_t<hb_vector_t<OT::cff1::accelerator_t::gname_t, true>*>::get_acquire() const hb_atomic_t<hb_bit_set_t*>::get_acquire() const Line | Count | Source | 254 | 219 | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::hb_ot_layout_lookup_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 663 | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<hb_colr_scratch_t*>::get_acquire() const Unexecuted instantiation: hb_atomic_t<OT::hb_varc_scratch_t*>::get_acquire() const hb_atomic_t<hb_font_funcs_t*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_cache_t<20u, 20u, 8u, true>*>::get_acquire() const Line | Count | Source | 254 | 10.2k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<OT::hb_scalar_cache_t*>::get_acquire() const Line | Count | Source | 254 | 40.8k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_cache_t<24u, 16u, 8u, true>*>::get_acquire() const Line | Count | Source | 254 | 20.4k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<hb_draw_funcs_t*>::get_acquire() const hb_atomic_t<hb_shaper_entry_t*>::get_acquire() const Line | Count | Source | 254 | 102k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<FT_LibraryRec_*>::get_acquire() const Unexecuted instantiation: hb_atomic_t<hb_paint_funcs_t*>::get_acquire() const hb_atomic_t<arabic_fallback_plan_t*>::get_acquire() const Line | Count | Source | 254 | 13 | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_unicode_funcs_t*>::get_acquire() const Line | Count | Source | 254 | 215k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
|
255 | 141k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } Unexecuted instantiation: hb_atomic_t<hb_user_data_array_t*>::cmpexch(hb_user_data_array_t*, hb_user_data_array_t*) hb_atomic_t<hb_language_item_t*>::cmpexch(hb_language_item_t*, hb_language_item_t*) Line | Count | Source | 255 | 27 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<__locale_struct*>::cmpexch(__locale_struct*, __locale_struct*) hb_atomic_t<hb_language_impl_t const*>::cmpexch(hb_language_impl_t const*, hb_language_impl_t const*) Line | Count | Source | 255 | 1 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<char const*>::cmpexch(char const*, char const*) Line | Count | Source | 255 | 1 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<char const**>::cmpexch(char const**, char const**) hb_atomic_t<hb_blob_t*>::cmpexch(hb_blob_t*, hb_blob_t*) Line | Count | Source | 255 | 23.9k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<OT::cmap_accelerator_t*>::cmpexch(OT::cmap_accelerator_t*, OT::cmap_accelerator_t*) Unexecuted instantiation: hb_atomic_t<hb_vector_t<float, false>*>::cmpexch(hb_vector_t<float, false>*, hb_vector_t<float, false>*) Unexecuted instantiation: hb_atomic_t<OT::hmtx_accelerator_t*>::cmpexch(OT::hmtx_accelerator_t*, OT::hmtx_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::vmtx_accelerator_t*>::cmpexch(OT::vmtx_accelerator_t*, OT::vmtx_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::gvar_accelerator_t*>::cmpexch(OT::gvar_accelerator_t*, OT::gvar_accelerator_t*) Unexecuted instantiation: hb_atomic_t<hb_glyf_scratch_t*>::cmpexch(hb_glyf_scratch_t*, hb_glyf_scratch_t*) Unexecuted instantiation: hb_atomic_t<hb_vector_t<OT::cff1::accelerator_t::gname_t, true>*>::cmpexch(hb_vector_t<OT::cff1::accelerator_t::gname_t, true>*, hb_vector_t<OT::cff1::accelerator_t::gname_t, true>*) hb_atomic_t<hb_bit_set_t*>::cmpexch(hb_bit_set_t*, hb_bit_set_t*) Line | Count | Source | 255 | 423 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::GDEF_accelerator_t*>::cmpexch(OT::GDEF_accelerator_t*, OT::GDEF_accelerator_t*) Line | Count | Source | 255 | 1.75k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::hb_ot_layout_lookup_accelerator_t*>::cmpexch(OT::hb_ot_layout_lookup_accelerator_t*, OT::hb_ot_layout_lookup_accelerator_t*) Line | Count | Source | 255 | 36 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<unsigned short*>::cmpexch(unsigned short*, unsigned short*) Unexecuted instantiation: hb_atomic_t<hb_colr_scratch_t*>::cmpexch(hb_colr_scratch_t*, hb_colr_scratch_t*) Unexecuted instantiation: hb_atomic_t<OT::hb_varc_scratch_t*>::cmpexch(OT::hb_varc_scratch_t*, OT::hb_varc_scratch_t*) Unexecuted instantiation: hb_atomic_t<hb_cache_t<20u, 20u, 8u, true>*>::cmpexch(hb_cache_t<20u, 20u, 8u, true>*, hb_cache_t<20u, 20u, 8u, true>*) Unexecuted instantiation: hb_atomic_t<OT::hb_scalar_cache_t*>::cmpexch(OT::hb_scalar_cache_t*, OT::hb_scalar_cache_t*) Unexecuted instantiation: hb_atomic_t<hb_cache_t<24u, 16u, 8u, true>*>::cmpexch(hb_cache_t<24u, 16u, 8u, true>*, hb_cache_t<24u, 16u, 8u, true>*) Unexecuted instantiation: hb_atomic_t<OT::glyf_accelerator_t*>::cmpexch(OT::glyf_accelerator_t*, OT::glyf_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::VARC_accelerator_t*>::cmpexch(OT::VARC_accelerator_t*, OT::VARC_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::cff2_accelerator_t*>::cmpexch(OT::cff2_accelerator_t*, OT::cff2_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::cff1_accelerator_t*>::cmpexch(OT::cff1_accelerator_t*, OT::cff1_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::COLR_accelerator_t*>::cmpexch(OT::COLR_accelerator_t*, OT::COLR_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::SVG_accelerator_t*>::cmpexch(OT::SVG_accelerator_t*, OT::SVG_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::CBDT_accelerator_t*>::cmpexch(OT::CBDT_accelerator_t*, OT::CBDT_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::sbix_accelerator_t*>::cmpexch(OT::sbix_accelerator_t*, OT::sbix_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::post_accelerator_t*>::cmpexch(OT::post_accelerator_t*, OT::post_accelerator_t*) hb_atomic_t<hb_font_funcs_t*>::cmpexch(hb_font_funcs_t*, hb_font_funcs_t*) Line | Count | Source | 255 | 2 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<hb_draw_funcs_t*>::cmpexch(hb_draw_funcs_t*, hb_draw_funcs_t*) hb_atomic_t<hb_ot_font_data_t*>::cmpexch(hb_ot_font_data_t*, hb_ot_font_data_t*) Line | Count | Source | 255 | 100k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<hb_fallback_font_data_t*>::cmpexch(hb_fallback_font_data_t*, hb_fallback_font_data_t*) hb_atomic_t<hb_ot_face_data_t*>::cmpexch(hb_ot_face_data_t*, hb_ot_face_data_t*) Line | Count | Source | 255 | 1.75k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<hb_fallback_face_data_t*>::cmpexch(hb_fallback_face_data_t*, hb_fallback_face_data_t*) hb_atomic_t<hb_face_t::plan_node_t*>::cmpexch(hb_face_t::plan_node_t*, hb_face_t::plan_node_t*) Line | Count | Source | 255 | 2.00k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<hb_shaper_entry_t*>::cmpexch(hb_shaper_entry_t*, hb_shaper_entry_t*) Line | Count | Source | 255 | 1 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<FT_LibraryRec_*>::cmpexch(FT_LibraryRec_*, FT_LibraryRec_*) hb_atomic_t<OT::GSUB_accelerator_t*>::cmpexch(OT::GSUB_accelerator_t*, OT::GSUB_accelerator_t*) Line | Count | Source | 255 | 1.75k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<AAT::morx_accelerator_t*>::cmpexch(AAT::morx_accelerator_t*, AAT::morx_accelerator_t*) Line | Count | Source | 255 | 1.75k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<AAT::mort_accelerator_t*>::cmpexch(AAT::mort_accelerator_t*, AAT::mort_accelerator_t*) Line | Count | Source | 255 | 1.75k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<AAT::hb_aat_layout_chain_accelerator_t*>::cmpexch(AAT::hb_aat_layout_chain_accelerator_t*, AAT::hb_aat_layout_chain_accelerator_t*) hb_atomic_t<AAT::kerx_accelerator_t*>::cmpexch(AAT::kerx_accelerator_t*, AAT::kerx_accelerator_t*) Line | Count | Source | 255 | 1.75k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<hb_paint_funcs_t*>::cmpexch(hb_paint_funcs_t*, hb_paint_funcs_t*) hb_atomic_t<OT::GPOS_accelerator_t*>::cmpexch(OT::GPOS_accelerator_t*, OT::GPOS_accelerator_t*) Line | Count | Source | 255 | 1.75k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::kern_accelerator_t*>::cmpexch(OT::kern_accelerator_t*, OT::kern_accelerator_t*) Line | Count | Source | 255 | 1.75k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<arabic_fallback_plan_t*>::cmpexch(arabic_fallback_plan_t*, arabic_fallback_plan_t*) Line | Count | Source | 255 | 3 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<hb_unicode_funcs_t*>::cmpexch(hb_unicode_funcs_t*, hb_unicode_funcs_t*) Line | Count | Source | 255 | 2 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
|
256 | | |
257 | 0 | operator bool () const { return get_acquire () != nullptr; } |
258 | 0 | T * operator -> () const { return get_acquire (); } |
259 | 212k | template <typename C> operator C * () const { return get_acquire (); } hb_atomic_t<hb_language_item_t*>::operator hb_language_item_t*<hb_language_item_t>() const Line | Count | Source | 259 | 69.8k | template <typename C> operator C * () const { return get_acquire (); } |
hb_atomic_t<hb_language_impl_t const*>::operator hb_language_impl_t const*<hb_language_impl_t const>() const Line | Count | Source | 259 | 31.1k | template <typename C> operator C * () const { return get_acquire (); } |
hb_atomic_t<hb_face_t::plan_node_t*>::operator hb_face_t::plan_node_t*<hb_face_t::plan_node_t>() const Line | Count | Source | 259 | 111k | template <typename C> operator C * () const { return get_acquire (); } |
Unexecuted instantiation: hb_atomic_t<AAT::hb_aat_layout_chain_accelerator_t*>::operator void*<void>() const hb_atomic_t<arabic_fallback_plan_t*>::operator arabic_fallback_plan_t*<arabic_fallback_plan_t>() const Line | Count | Source | 259 | 13 | template <typename C> operator C * () const { return get_acquire (); } |
|
260 | | |
261 | | T *v = nullptr; |
262 | | }; |
263 | | |
264 | | #endif |
265 | | |
266 | | static inline bool hb_barrier () |
267 | 7.68M | { |
268 | 7.68M | _hb_compiler_memory_r_barrier (); |
269 | 7.68M | return true; |
270 | 7.68M | } Unexecuted instantiation: hb-blob.cc:hb_barrier() Unexecuted instantiation: hb-buffer.cc:hb_barrier() Unexecuted instantiation: hb-common.cc:hb_barrier() Line | Count | Source | 267 | 2.42M | { | 268 | 2.42M | _hb_compiler_memory_r_barrier (); | 269 | 2.42M | return true; | 270 | 2.42M | } |
Unexecuted instantiation: hb-face-builder.cc:hb_barrier() Unexecuted instantiation: hb-fallback-shape.cc:hb_barrier() Unexecuted instantiation: hb-font.cc:hb_barrier() Unexecuted instantiation: hb-number.cc:hb_barrier() Unexecuted instantiation: hb-ot-face.cc:hb_barrier() hb-ot-font.cc:hb_barrier() Line | Count | Source | 267 | 11.2k | { | 268 | 11.2k | _hb_compiler_memory_r_barrier (); | 269 | 11.2k | return true; | 270 | 11.2k | } |
Unexecuted instantiation: hb-outline.cc:hb_barrier() Unexecuted instantiation: VARC.cc:hb_barrier() Unexecuted instantiation: hb-ot-metrics.cc:hb_barrier() hb-ot-shape.cc:hb_barrier() Line | Count | Source | 267 | 576 | { | 268 | 576 | _hb_compiler_memory_r_barrier (); | 269 | 576 | return true; | 270 | 576 | } |
Unexecuted instantiation: hb-ot-var.cc:hb_barrier() Unexecuted instantiation: hb-set.cc:hb_barrier() Unexecuted instantiation: hb-shape-plan.cc:hb_barrier() Unexecuted instantiation: hb-shape.cc:hb_barrier() Unexecuted instantiation: hb-shaper.cc:hb_barrier() Unexecuted instantiation: hb-static.cc:hb_barrier() Unexecuted instantiation: hb-unicode.cc:hb_barrier() Unexecuted instantiation: hb-ft.cc:hb_barrier() hb-aat-layout.cc:hb_barrier() Line | Count | Source | 267 | 4.98M | { | 268 | 4.98M | _hb_compiler_memory_r_barrier (); | 269 | 4.98M | return true; | 270 | 4.98M | } |
Unexecuted instantiation: hb-aat-map.cc:hb_barrier() Unexecuted instantiation: hb-buffer-verify.cc:hb_barrier() Unexecuted instantiation: hb-draw.cc:hb_barrier() Unexecuted instantiation: hb-paint.cc:hb_barrier() Unexecuted instantiation: hb-paint-bounded.cc:hb_barrier() Unexecuted instantiation: hb-paint-extents.cc:hb_barrier() Unexecuted instantiation: hb-ot-cff1-table.cc:hb_barrier() Unexecuted instantiation: hb-ot-cff2-table.cc:hb_barrier() hb-ot-layout.cc:hb_barrier() Line | Count | Source | 267 | 262k | { | 268 | 262k | _hb_compiler_memory_r_barrier (); | 269 | 262k | return true; | 270 | 262k | } |
Unexecuted instantiation: hb-ot-map.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-arabic.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-default.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-hangul.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-hebrew.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-indic.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-khmer.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-myanmar.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-syllabic.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-thai.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-use.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-vowel-constraints.cc:hb_barrier() Unexecuted instantiation: hb-ot-shape-fallback.cc:hb_barrier() Unexecuted instantiation: hb-ot-shape-normalize.cc:hb_barrier() Unexecuted instantiation: hb-ot-tag.cc:hb_barrier() Unexecuted instantiation: hb-ucd.cc:hb_barrier() Unexecuted instantiation: hb-buffer-serialize.cc:hb_barrier() Unexecuted instantiation: hb-ot-shaper-indic-table.cc:hb_barrier() |
271 | | |
272 | | |
273 | | #endif /* HB_ATOMIC_HH */ |