[ClassDef] Fix disabled codeblock

pull/3906/head
Behdad Esfahbod 2 years ago
parent 9b7617d433
commit 44c585a6df
  1. 10
      src/hb-ot-layout-common.hh

@ -1969,18 +1969,20 @@ struct ClassDefFormat2_4
return; return;
} }
#if 0
/* The following implementation is faster asymptotically, but slower /* The following implementation is faster asymptotically, but slower
* in practice. */ * 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; for (hb_codepoint_t g = HB_SET_VALUE_INVALID;
glyphs->next (&g);) 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); intersect_glyphs->add (g);
}
return; return;
} }
#endif
for (unsigned int i = 0; i < count; i++) for (unsigned int i = 0; i < count; i++)
{ {

Loading…
Cancel
Save