[ot-map] Micro-optimize for size

This commit is contained in:
Behdad Esfahbod 2022-11-26 14:31:15 -07:00
parent 93f3a9dbc6
commit 4b8d8fbee4
2 changed files with 6 additions and 3 deletions

View File

@ -92,11 +92,11 @@ struct hb_ot_map_t
{
hb_memset (this, 0, sizeof (*this));
features.init ();
features.init0 ();
for (unsigned int table_index = 0; table_index < 2; table_index++)
{
lookups[table_index].init ();
stages[table_index].init ();
lookups[table_index].init0 ();
stages[table_index].init0 ();
}
}
void fini ()

View File

@ -84,6 +84,9 @@ struct hb_vector_t
allocated = length = 0;
arrayZ = nullptr;
}
void init0 ()
{
}
void fini ()
{