Lines Matching refs:shapers
54 hb_shaper_pair_t *shapers = (hb_shaper_pair_t *) hb_atomic_ptr_get (&static_shapers); in _hb_shapers_get()
56 if (unlikely (!shapers)) in _hb_shapers_get()
65 shapers = (hb_shaper_pair_t *) malloc (sizeof (all_shapers)); in _hb_shapers_get()
66 if (unlikely (!shapers)) { in _hb_shapers_get()
71 memcpy (shapers, all_shapers, sizeof (all_shapers)); in _hb_shapers_get()
82 if (end - p == (int) strlen (shapers[j].name) && in _hb_shapers_get()
83 0 == strncmp (shapers[j].name, p, end - p)) in _hb_shapers_get()
86 struct hb_shaper_pair_t t = shapers[j]; in _hb_shapers_get()
87 memmove (&shapers[i + 1], &shapers[i], sizeof (shapers[i]) * (j - i)); in _hb_shapers_get()
88 shapers[i] = t; in _hb_shapers_get()
98 if (!hb_atomic_ptr_cmpexch (&static_shapers, NULL, shapers)) { in _hb_shapers_get()
99 free (shapers); in _hb_shapers_get()
108 return shapers; in _hb_shapers_get()