[ot-map] Micro-optimize
Weird that shrinks size by 500 bytes.
This commit is contained in:
parent
60bb32c454
commit
f39f049870
|
@ -353,13 +353,13 @@ hb_ot_map_builder_t::compile (hb_ot_map_t &m,
|
||||||
|
|
||||||
unsigned int j = last_num_lookups;
|
unsigned int j = last_num_lookups;
|
||||||
for (unsigned int i = j + 1; i < lookups.length; i++)
|
for (unsigned int i = j + 1; i < lookups.length; i++)
|
||||||
if (lookups[i].index != lookups[j].index)
|
if (lookups.arrayZ[i].index != lookups.arrayZ[j].index)
|
||||||
lookups[++j] = lookups[i];
|
lookups.arrayZ[++j] = lookups.arrayZ[i];
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
lookups[j].mask |= lookups[i].mask;
|
lookups.arrayZ[j].mask |= lookups.arrayZ[i].mask;
|
||||||
lookups[j].auto_zwnj &= lookups[i].auto_zwnj;
|
lookups.arrayZ[j].auto_zwnj &= lookups.arrayZ[i].auto_zwnj;
|
||||||
lookups[j].auto_zwj &= lookups[i].auto_zwj;
|
lookups.arrayZ[j].auto_zwj &= lookups.arrayZ[i].auto_zwj;
|
||||||
}
|
}
|
||||||
lookups.shrink (j + 1);
|
lookups.shrink (j + 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue