[ClassDef] Fix disabled codeblock

This commit is contained in:
Behdad Esfahbod 2022-11-29 20:51:58 -07:00
parent 9b7617d433
commit 44c585a6df
1 changed files with 6 additions and 4 deletions

View File

@ -1969,18 +1969,20 @@ struct ClassDefFormat2_4
return;
}
#if 0
/* The following implementation is faster asymptotically, but slower
* in practice. */
if ((count >> 3) > glyphs->get_population ())
if (false && count > glyphs->get_population () * hb_bit_storage (count))
{
for (hb_codepoint_t g = HB_SET_VALUE_INVALID;
glyphs->next (&g);)
if (rangeRecord.as_array ().bfind (g))
{
unsigned i;
if (rangeRecord.as_array ().bfind (g, &i) &&
rangeRecord.arrayZ[i].value == klass)
intersect_glyphs->add (g);
}
return;
}
#endif
for (unsigned int i = 0; i < count; i++)
{