[ot-font] Mark a function hot

This commit is contained in:
Behdad Esfahbod committed 2025-07-20 07:19:23 -06:00
1 parent 57083f26cb
commit fed65c8bf8
4 files changed
+9 -1

No files matched your search

+1
View File
@@ -619,6 +619,7 @@ hb_ot_get_glyph_v_advances (hb_font_t* font, void* font_data,
#endif
#ifndef HB_NO_VERTICAL
HB_HOT
static hb_bool_t
hb_ot_get_glyph_v_origins (hb_font_t *font,
void *font_data,
+3 -1
View File
@@ -384,6 +384,7 @@ struct HVARVVAR
hvar_plan.index_map_plans.as_array ()));
}
HB_ALWAYS_INLINE
float get_advance_delta_unscaled (hb_codepoint_t glyph,
const int *coords, unsigned int coord_count,
hb_scalar_cache_t *store_cache = nullptr) const
@@ -446,9 +447,10 @@ struct VVAR : HVARVVAR {
bool subset (hb_subset_context_t *c) const { return HVARVVAR::_subset<VVAR> (c); }
HB_ALWAYS_INLINE
float get_vorg_delta_unscaled (hb_codepoint_t glyph,
const int *coords, unsigned int coord_count,
hb_scalar_cache_t *store_cache = nullptr) const
hb_scalar_cache_t *store_cache = nullptr) const
{
if (!vorgMap) return 0.f;
uint32_t varidx = (this+vorgMap).map (glyph);
+1
View File
@@ -61,6 +61,7 @@ struct VORG
bool has_data () const { return version.to_int (); }
HB_ALWAYS_INLINE
int get_y_origin (hb_codepoint_t glyph) const
{
unsigned int i;
+4
View File
@@ -314,6 +314,10 @@
#endif
#endif
#ifndef HB_HOT
#define HB_HOT __attribute__((hot))
#endif
/*
* Borrowed from https://bugzilla.mozilla.org/show_bug.cgi?id=1215411
* HB_FALLTHROUGH is an annotation to suppress compiler warnings about switch