/work/workdir/UnpackedTarball/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 | 260M | #define hb_atomic_int_impl_add(AI, V) __atomic_fetch_add ((AI), (V), __ATOMIC_ACQ_REL) |
59 | 50.0M | #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 | 4.10G | #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 | 16.9M | #define hb_atomic_ptr_impl_set_relaxed(P, V) __atomic_store_n ((P), (V), __ATOMIC_RELAXED) |
65 | 16.0k | #define hb_atomic_ptr_impl_get_relaxed(P) __atomic_load_n ((P), __ATOMIC_RELAXED) |
66 | 1.04G | #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 | 74.6M | { |
70 | 74.6M | const void *O = O_; // Need lvalue |
71 | 74.6M | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); |
72 | 74.6M | } hb-aat-layout.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 21.0M | { | 70 | 21.0M | const void *O = O_; // Need lvalue | 71 | 21.0M | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 21.0M | } |
Unexecuted instantiation: hb-aat-map.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) 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 | 214 | { | 70 | 214 | const void *O = O_; // Need lvalue | 71 | 214 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 214 | } |
Unexecuted instantiation: hb-draw.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-face.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 118 | { | 70 | 118 | const void *O = O_; // Need lvalue | 71 | 118 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 118 | } |
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 | 87 | { | 70 | 87 | const void *O = O_; // Need lvalue | 71 | 87 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 87 | } |
Unexecuted instantiation: hb-number.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) hb-ot-color.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 84 | { | 70 | 84 | const void *O = O_; // Need lvalue | 71 | 84 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 84 | } |
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 | 3.17M | { | 70 | 3.17M | const void *O = O_; // Need lvalue | 71 | 3.17M | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 3.17M | } |
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*) hb-ot-layout.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 21.2M | { | 70 | 21.2M | const void *O = O_; // Need lvalue | 71 | 21.2M | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 21.2M | } |
hb-ot-metrics.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 59 | { | 70 | 59 | const void *O = O_; // Need lvalue | 71 | 59 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 59 | } |
hb-ot-name.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 9 | { | 70 | 9 | const void *O = O_; // Need lvalue | 71 | 9 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 9 | } |
Unexecuted instantiation: hb-ot-shape.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-ot-var.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 59 | { | 70 | 59 | const void *O = O_; // Need lvalue | 71 | 59 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 59 | } |
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 | 29.1M | { | 70 | 29.1M | const void *O = O_; // Need lvalue | 71 | 29.1M | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 29.1M | } |
Unexecuted instantiation: hb-shape.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-shaper.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) 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-graphite2.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Unexecuted instantiation: hb-icu.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-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*) 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 | 237 | { | 70 | 237 | const void *O = O_; // Need lvalue | 71 | 237 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 237 | } |
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*) hb-ucd.cc:_hb_atomic_ptr_impl_cmplexch(void const**, void const*, void const*) Line | Count | Source | 69 | 56 | { | 70 | 56 | const void *O = O_; // Need lvalue | 71 | 56 | return __atomic_compare_exchange_n ((void **) P, (void **) &O, (void *) N, true, __ATOMIC_ACQ_REL, __ATOMIC_RELAXED); | 72 | 56 | } |
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 | 74.6M | #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 | 90.3M | static inline void _hb_compiler_memory_r_barrier () { asm volatile("": : :"memory"); }hb-aat-layout.cc:_hb_compiler_memory_r_barrier() Line | Count | Source | 103 | 1.74M | 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-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() Unexecuted instantiation: hb-draw.cc:_hb_compiler_memory_r_barrier() hb-face.cc:_hb_compiler_memory_r_barrier() Line | Count | Source | 103 | 255k | 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-color.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 | 354 | 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() hb-ot-layout.cc:_hb_compiler_memory_r_barrier() Line | Count | Source | 103 | 88.3M | static inline void _hb_compiler_memory_r_barrier () { asm volatile("": : :"memory"); } |
Unexecuted instantiation: hb-ot-metrics.cc:_hb_compiler_memory_r_barrier() hb-ot-name.cc:_hb_compiler_memory_r_barrier() Line | Count | Source | 103 | 828 | static inline void _hb_compiler_memory_r_barrier () { asm volatile("": : :"memory"); } |
Unexecuted instantiation: hb-ot-shape.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-ot-tag.cc:_hb_compiler_memory_r_barrier() 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-graphite2.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-icu.cc:_hb_compiler_memory_r_barrier() Unexecuted instantiation: hb-buffer-verify.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() 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-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 | 15.1M | hb_atomic_t () = default; hb_atomic_t<unsigned short>::hb_atomic_t() Line | Count | Source | 224 | 22.6k | hb_atomic_t () = default; |
hb_atomic_t<int>::hb_atomic_t() Line | Count | Source | 224 | 14.4M | hb_atomic_t () = default; |
hb_atomic_t<unsigned int>::hb_atomic_t() Line | Count | Source | 224 | 710k | hb_atomic_t () = default; |
|
225 | 1.94G | constexpr hb_atomic_t (T v) : v (v) {}hb_atomic_t<unsigned int>::hb_atomic_t(unsigned int) Line | Count | Source | 225 | 856M | constexpr hb_atomic_t (T v) : v (v) {} |
hb_atomic_t<unsigned short>::hb_atomic_t(unsigned short) Line | Count | Source | 225 | 1.07G | constexpr hb_atomic_t (T v) : v (v) {} |
hb_atomic_t<bool>::hb_atomic_t(bool) Line | Count | Source | 225 | 14.4M | constexpr hb_atomic_t (T v) : v (v) {} |
|
226 | | |
227 | 50.0M | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; }hb_atomic_t<unsigned int>::operator=(unsigned int) Line | Count | Source | 227 | 5.58M | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; } |
hb_atomic_t<unsigned short>::operator=(unsigned short) Line | Count | Source | 227 | 1.14M | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; } |
hb_atomic_t<int>::operator=(int) Line | Count | Source | 227 | 28.8M | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; } |
hb_atomic_t<bool>::operator=(bool) Line | Count | Source | 227 | 14.4M | hb_atomic_t& operator = (T v_) { set_relaxed (v_); return *this; } |
|
228 | 4.10G | operator T () const { return get_relaxed (); }hb_atomic_t<unsigned int>::operator unsigned int() const Line | Count | Source | 228 | 1.36G | operator T () const { return get_relaxed (); } |
hb_atomic_t<unsigned short>::operator unsigned short() const Line | Count | Source | 228 | 1.60G | operator T () const { return get_relaxed (); } |
hb_atomic_t<int>::operator int() const Line | Count | Source | 228 | 931M | operator T () const { return get_relaxed (); } |
hb_atomic_t<bool>::operator bool() const Line | Count | Source | 228 | 204M | operator T () const { return get_relaxed (); } |
|
229 | | |
230 | 50.0M | 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 | 5.58M | 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 | 1.14M | void set_relaxed (T v_) { hb_atomic_int_impl_set_relaxed (&v, v_); } |
hb_atomic_t<int>::set_relaxed(int) Line | Count | Source | 230 | 28.8M | void set_relaxed (T v_) { hb_atomic_int_impl_set_relaxed (&v, v_); } |
hb_atomic_t<bool>::set_relaxed(bool) Line | Count | Source | 230 | 14.4M | 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_); } |
232 | 4.10G | 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.36G | T get_relaxed () const { return hb_atomic_int_impl_get_relaxed (&v); } |
hb_atomic_t<unsigned short>::get_relaxed() const Line | Count | Source | 232 | 1.60G | T get_relaxed () const { return hb_atomic_int_impl_get_relaxed (&v); } |
hb_atomic_t<int>::get_relaxed() const Line | Count | Source | 232 | 931M | T get_relaxed () const { return hb_atomic_int_impl_get_relaxed (&v); } |
hb_atomic_t<bool>::get_relaxed() const Line | Count | Source | 232 | 204M | 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 | 123M | T inc () { return hb_atomic_int_impl_add (&v, 1); }Line | Count | Source | 234 | 122M | T inc () { return hb_atomic_int_impl_add (&v, 1); } |
hb_atomic_t<unsigned int>::inc() Line | Count | Source | 234 | 618k | T inc () { return hb_atomic_int_impl_add (&v, 1); } |
|
235 | 137M | T dec () { return hb_atomic_int_impl_add (&v, -1); } |
236 | | |
237 | 618k | 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 | 15.0M | hb_atomic_t () = default; hb_atomic_t<hb_bit_set_t*>::hb_atomic_t() Line | Count | Source | 247 | 472 | hb_atomic_t () = default; |
hb_atomic_t<hb_user_data_array_t*>::hb_atomic_t() Line | Count | Source | 247 | 14.4M | hb_atomic_t () = default; |
hb_atomic_t<hb_graphite2_face_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<hb_ot_face_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<hb_fallback_face_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<hb_blob_t*>::hb_atomic_t() Line | Count | Source | 247 | 1.12k | hb_atomic_t () = default; |
hb_atomic_t<OT::cmap_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::hmtx_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::post_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::name_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::meta_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::vmtx_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::glyf_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::cff1_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::cff2_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::gvar_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::VARC_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::kern_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::GDEF_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::GSUB_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::GPOS_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<AAT::morx_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<AAT::mort_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<AAT::kerx_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::COLR_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::CBDT_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::sbix_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<OT::SVG_accelerator_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<hb_face_t::plan_node_t*>::hb_atomic_t() Line | Count | Source | 247 | 59 | hb_atomic_t () = default; |
hb_atomic_t<hb_graphite2_font_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 206k | hb_atomic_t () = default; |
hb_atomic_t<hb_ot_font_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 206k | hb_atomic_t () = default; |
hb_atomic_t<hb_fallback_font_data_t*>::hb_atomic_t() Line | Count | Source | 247 | 206k | hb_atomic_t () = default; |
hb_atomic_t<hb_colr_scratch_t*>::hb_atomic_t() Line | Count | Source | 247 | 28 | hb_atomic_t () = default; |
hb_atomic_t<hb_glyf_scratch_t*>::hb_atomic_t() Line | Count | Source | 247 | 28 | hb_atomic_t () = default; |
hb_atomic_t<OT::hb_varc_scratch_t*>::hb_atomic_t() Line | Count | Source | 247 | 28 | hb_atomic_t () = default; |
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() hb_atomic_t<unsigned short*>::hb_atomic_t() Line | Count | Source | 247 | 59 | 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 | 14.4M | void init (T* v_ = nullptr) { set_relaxed (v_); } |
252 | 16.9M | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); }hb_atomic_t<hb_bit_set_t*>::set_relaxed(hb_bit_set_t*) Line | Count | Source | 252 | 236 | 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 | 14.4M | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
hb_atomic_t<hb_graphite2_font_data_t*>::set_relaxed(hb_graphite2_font_data_t*) Line | Count | Source | 252 | 823k | 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 | 823k | 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 | 823k | void set_relaxed (T* v_) { hb_atomic_ptr_impl_set_relaxed (&v, v_); } |
Unexecuted instantiation: hb_atomic_t<hb_graphite2_face_data_t*>::set_relaxed(hb_graphite2_face_data_t*) Unexecuted instantiation: hb_atomic_t<hb_ot_face_data_t*>::set_relaxed(hb_ot_face_data_t*) Unexecuted instantiation: hb_atomic_t<hb_fallback_face_data_t*>::set_relaxed(hb_fallback_face_data_t*) Unexecuted instantiation: hb_atomic_t<hb_blob_t*>::set_relaxed(hb_blob_t*) Unexecuted instantiation: hb_atomic_t<OT::cmap_accelerator_t*>::set_relaxed(OT::cmap_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::hmtx_accelerator_t*>::set_relaxed(OT::hmtx_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::post_accelerator_t*>::set_relaxed(OT::post_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::name_accelerator_t*>::set_relaxed(OT::name_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::meta_accelerator_t*>::set_relaxed(OT::meta_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::vmtx_accelerator_t*>::set_relaxed(OT::vmtx_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::glyf_accelerator_t*>::set_relaxed(OT::glyf_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::cff1_accelerator_t*>::set_relaxed(OT::cff1_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::cff2_accelerator_t*>::set_relaxed(OT::cff2_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::gvar_accelerator_t*>::set_relaxed(OT::gvar_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::VARC_accelerator_t*>::set_relaxed(OT::VARC_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::kern_accelerator_t*>::set_relaxed(OT::kern_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::GDEF_accelerator_t*>::set_relaxed(OT::GDEF_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::GSUB_accelerator_t*>::set_relaxed(OT::GSUB_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::GPOS_accelerator_t*>::set_relaxed(OT::GPOS_accelerator_t*) Unexecuted instantiation: hb_atomic_t<AAT::morx_accelerator_t*>::set_relaxed(AAT::morx_accelerator_t*) Unexecuted instantiation: hb_atomic_t<AAT::mort_accelerator_t*>::set_relaxed(AAT::mort_accelerator_t*) Unexecuted instantiation: hb_atomic_t<AAT::kerx_accelerator_t*>::set_relaxed(AAT::kerx_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::COLR_accelerator_t*>::set_relaxed(OT::COLR_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::CBDT_accelerator_t*>::set_relaxed(OT::CBDT_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::sbix_accelerator_t*>::set_relaxed(OT::sbix_accelerator_t*) Unexecuted instantiation: hb_atomic_t<OT::SVG_accelerator_t*>::set_relaxed(OT::SVG_accelerator_t*) 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>*) |
253 | 16.0k | T *get_relaxed () const { return (T *) hb_atomic_ptr_impl_get_relaxed (&v); }Unexecuted instantiation: hb_atomic_t<OT::hb_ot_layout_lookup_accelerator_t*>::get_relaxed() const hb_atomic_t<hb_bit_set_t*>::get_relaxed() const Line | Count | Source | 253 | 236 | T *get_relaxed () const { return (T *) hb_atomic_ptr_impl_get_relaxed (&v); } |
hb_atomic_t<OT::GPOS_accelerator_t*>::get_relaxed() const Line | Count | Source | 253 | 15.5k | T *get_relaxed () const { return (T *) hb_atomic_ptr_impl_get_relaxed (&v); } |
hb_atomic_t<OT::GSUB_accelerator_t*>::get_relaxed() const Line | Count | Source | 253 | 269 | 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_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 Unexecuted instantiation: hb_atomic_t<hb_vector_t<CFF::code_pair_t, false>*>::get_relaxed() const |
254 | 1.04G | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); }hb_atomic_t<hb_bit_set_t*>::get_acquire() const Line | Count | Source | 254 | 21.0M | 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 | 226M | 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 | 57.9M | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<AAT::morx_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 13.9M | 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<hb_blob_t*>::get_acquire() const Line | Count | Source | 254 | 52.1M | 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 | 13.9M | 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 | 10.0k | 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 | 14.4M | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_graphite2_font_data_t*>::get_acquire() const Line | Count | Source | 254 | 823k | 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 | 87.6M | 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 | 823k | 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 | 123M | 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 | 28.8M | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<__locale_struct*>::get_acquire() const Unexecuted instantiation: hb_atomic_t<hb_language_impl_t const*>::get_acquire() const Unexecuted instantiation: hb_atomic_t<hb_draw_funcs_t*>::get_acquire() const hb_atomic_t<char const*>::get_acquire() const Line | Count | Source | 254 | 206k | 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 | 28.9M | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
hb_atomic_t<hb_graphite2_face_data_t*>::get_acquire() const Line | Count | Source | 254 | 29.1M | 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 | 28.9M | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<hb_fallback_face_data_t*>::get_acquire() const hb_atomic_t<OT::cmap_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 146M | 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 | 8.24M | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<OT::SVG_accelerator_t*>::get_acquire() const hb_atomic_t<OT::CBDT_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 8.24M | 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 | 8.24M | 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 hb_atomic_t<OT::hmtx_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 36.5M | 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 | 1.64M | 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 | 2.21k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<OT::meta_accelerator_t*>::get_acquire() const hb_atomic_t<OT::vmtx_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 3.17M | 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 | 2.24M | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<OT::cff1_accelerator_t*>::get_acquire() const Unexecuted instantiation: hb_atomic_t<hb_vector_t<float, false>*>::get_acquire() const Unexecuted instantiation: hb_atomic_t<OT::cff2_accelerator_t*>::get_acquire() const hb_atomic_t<OT::gvar_accelerator_t*>::get_acquire() const Line | Count | Source | 254 | 28 | 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 | 652k | 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 | 21.0M | 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 | 57.9M | 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 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 | 412k | 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 | 1.99M | 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 | 1.64M | 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 | 822k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
Unexecuted instantiation: hb_atomic_t<hb_shaper_entry_t*>::get_acquire() const Unexecuted instantiation: hb_atomic_t<hb_graphite2_tablelist_t*>::get_acquire() const hb_atomic_t<hb_unicode_funcs_t*>::get_acquire() const Line | Count | Source | 254 | 13.9M | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
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 | 511k | T *get_acquire () const { return (T *) hb_atomic_ptr_impl_get ((void **) &v); } |
|
255 | 74.6M | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); }hb_atomic_t<hb_bit_set_t*>::cmpexch(hb_bit_set_t*, hb_bit_set_t*) Line | Count | Source | 255 | 42.0M | 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 | 59 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::GSUB_accelerator_t*>::cmpexch(OT::GSUB_accelerator_t*, OT::GSUB_accelerator_t*) Line | Count | Source | 255 | 59 | 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 | 59 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<hb_blob_t*>::cmpexch(hb_blob_t*, hb_blob_t*) Line | Count | Source | 255 | 596 | 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 | 59 | 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 | 59 | 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 | 935 | 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 | 214 | 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*) Unexecuted instantiation: hb_atomic_t<hb_language_impl_t const*>::cmpexch(hb_language_impl_t const*, hb_language_impl_t const*) Unexecuted instantiation: hb_atomic_t<hb_draw_funcs_t*>::cmpexch(hb_draw_funcs_t*, hb_draw_funcs_t*) hb_atomic_t<char const*>::cmpexch(char const*, char const*) Line | Count | Source | 255 | 28 | 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<OT::cmap_accelerator_t*>::cmpexch(OT::cmap_accelerator_t*, OT::cmap_accelerator_t*) Line | Count | Source | 255 | 59 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::COLR_accelerator_t*>::cmpexch(OT::COLR_accelerator_t*, OT::COLR_accelerator_t*) Line | Count | Source | 255 | 28 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<OT::SVG_accelerator_t*>::cmpexch(OT::SVG_accelerator_t*, OT::SVG_accelerator_t*) hb_atomic_t<OT::CBDT_accelerator_t*>::cmpexch(OT::CBDT_accelerator_t*, OT::CBDT_accelerator_t*) Line | Count | Source | 255 | 28 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::sbix_accelerator_t*>::cmpexch(OT::sbix_accelerator_t*, OT::sbix_accelerator_t*) Line | Count | Source | 255 | 28 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<hb_colr_scratch_t*>::cmpexch(hb_colr_scratch_t*, hb_colr_scratch_t*) Unexecuted instantiation: hb_atomic_t<hb_vector_t<float, false>*>::cmpexch(hb_vector_t<float, false>*, hb_vector_t<float, false>*) hb_atomic_t<OT::hmtx_accelerator_t*>::cmpexch(OT::hmtx_accelerator_t*, OT::hmtx_accelerator_t*) Line | Count | Source | 255 | 59 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::vmtx_accelerator_t*>::cmpexch(OT::vmtx_accelerator_t*, OT::vmtx_accelerator_t*) Line | Count | Source | 255 | 28 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::gvar_accelerator_t*>::cmpexch(OT::gvar_accelerator_t*, OT::gvar_accelerator_t*) Line | Count | Source | 255 | 28 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
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>*) Unexecuted instantiation: hb_atomic_t<unsigned short*>::cmpexch(unsigned short*, unsigned short*) Unexecuted instantiation: hb_atomic_t<OT::hb_varc_scratch_t*>::cmpexch(OT::hb_varc_scratch_t*, OT::hb_varc_scratch_t*) 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>*) Line | Count | Source | 255 | 3.17M | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
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>*) hb_atomic_t<OT::glyf_accelerator_t*>::cmpexch(OT::glyf_accelerator_t*, OT::glyf_accelerator_t*) Line | Count | Source | 255 | 28 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::VARC_accelerator_t*>::cmpexch(OT::VARC_accelerator_t*, OT::VARC_accelerator_t*) Line | Count | Source | 255 | 28 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
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*) hb_atomic_t<OT::post_accelerator_t*>::cmpexch(OT::post_accelerator_t*, OT::post_accelerator_t*) Line | Count | Source | 255 | 59 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<hb_font_funcs_t*>::cmpexch(hb_font_funcs_t*, hb_font_funcs_t*) Line | Count | Source | 255 | 56 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::GPOS_accelerator_t*>::cmpexch(OT::GPOS_accelerator_t*, OT::GPOS_accelerator_t*) Line | Count | Source | 255 | 59 | 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 | 59 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<hb_ot_font_data_t*>::cmpexch(hb_ot_font_data_t*, hb_ot_font_data_t*) Line | Count | Source | 255 | 206k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<OT::name_accelerator_t*>::cmpexch(OT::name_accelerator_t*, OT::name_accelerator_t*) Line | Count | Source | 255 | 9 | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<hb_graphite2_font_data_t*>::cmpexch(hb_graphite2_font_data_t*, hb_graphite2_font_data_t*) 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_graphite2_face_data_t*>::cmpexch(hb_graphite2_face_data_t*, hb_graphite2_face_data_t*) Line | Count | Source | 255 | 29.1M | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
hb_atomic_t<hb_ot_face_data_t*>::cmpexch(hb_ot_face_data_t*, hb_ot_face_data_t*) Line | Count | Source | 255 | 59 | 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 | 10.0k | bool cmpexch (T *old, T *new_) { return hb_atomic_ptr_impl_cmpexch ((void **) &v, (void *) old, (void *) new_); } |
Unexecuted instantiation: hb_atomic_t<hb_shaper_entry_t*>::cmpexch(hb_shaper_entry_t*, hb_shaper_entry_t*) Unexecuted instantiation: hb_atomic_t<hb_graphite2_tablelist_t*>::cmpexch(hb_graphite2_tablelist_t*, hb_graphite2_tablelist_t*) hb_atomic_t<hb_unicode_funcs_t*>::cmpexch(hb_unicode_funcs_t*, hb_unicode_funcs_t*) Line | Count | Source | 255 | 56 | 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<arabic_fallback_plan_t*>::cmpexch(arabic_fallback_plan_t*, arabic_fallback_plan_t*) Line | Count | Source | 255 | 237 | 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 | 58.3M | 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<hb_language_item_t*>::operator hb_language_item_t*<hb_language_item_t>() const Line | Count | Source | 259 | 28.8M | template <typename C> operator C * () const { return get_acquire (); } |
Unexecuted instantiation: hb_atomic_t<hb_language_impl_t const*>::operator hb_language_impl_t const*<hb_language_impl_t const>() const 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 | 28.9M | template <typename C> operator C * () const { return get_acquire (); } |
Unexecuted instantiation: hb_atomic_t<hb_graphite2_tablelist_t*>::operator hb_graphite2_tablelist_t*<hb_graphite2_tablelist_t>() const hb_atomic_t<arabic_fallback_plan_t*>::operator arabic_fallback_plan_t*<arabic_fallback_plan_t>() const Line | Count | Source | 259 | 511k | 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 | 90.3M | { |
268 | 90.3M | _hb_compiler_memory_r_barrier (); |
269 | 90.3M | return true; |
270 | 90.3M | } hb-aat-layout.cc:hb_barrier() Line | Count | Source | 267 | 1.74M | { | 268 | 1.74M | _hb_compiler_memory_r_barrier (); | 269 | 1.74M | return true; | 270 | 1.74M | } |
Unexecuted instantiation: hb-aat-map.cc:hb_barrier() Unexecuted instantiation: hb-blob.cc:hb_barrier() Unexecuted instantiation: hb-buffer.cc:hb_barrier() Unexecuted instantiation: hb-common.cc:hb_barrier() Unexecuted instantiation: hb-draw.cc:hb_barrier() Line | Count | Source | 267 | 255k | { | 268 | 255k | _hb_compiler_memory_r_barrier (); | 269 | 255k | return true; | 270 | 255k | } |
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-color.cc:hb_barrier() Unexecuted instantiation: hb-ot-face.cc:hb_barrier() hb-ot-font.cc:hb_barrier() Line | Count | Source | 267 | 354 | { | 268 | 354 | _hb_compiler_memory_r_barrier (); | 269 | 354 | return true; | 270 | 354 | } |
Unexecuted instantiation: hb-outline.cc:hb_barrier() Unexecuted instantiation: VARC.cc:hb_barrier() hb-ot-layout.cc:hb_barrier() Line | Count | Source | 267 | 88.3M | { | 268 | 88.3M | _hb_compiler_memory_r_barrier (); | 269 | 88.3M | return true; | 270 | 88.3M | } |
Unexecuted instantiation: hb-ot-metrics.cc:hb_barrier() hb-ot-name.cc:hb_barrier() Line | Count | Source | 267 | 828 | { | 268 | 828 | _hb_compiler_memory_r_barrier (); | 269 | 828 | return true; | 270 | 828 | } |
Unexecuted instantiation: hb-ot-shape.cc:hb_barrier() Unexecuted instantiation: hb-ot-tag.cc:hb_barrier() 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-graphite2.cc:hb_barrier() Unexecuted instantiation: hb-icu.cc:hb_barrier() Unexecuted instantiation: hb-buffer-verify.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() 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-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 */ |