< prev index next >

src/java.desktop/share/native/libfontmanager/harfbuzz/hb-ot-shape-complex-khmer.cc

Print this page

        

@@ -370,10 +370,13 @@
       {
         base = i;
         break;
       }
 
+    if (unlikely (end - start >= 127))
+      buffer->merge_clusters (start, end);
+    else
     /* Note!  syllable() is a one-byte field. */
     for (unsigned int i = base; i < end; i++)
       if (info[i].syllable() != 255)
       {
         unsigned int max = i;
< prev index next >