[calculate-scalar] Another tiny speedup

~1% in varc-hanzi benchmark.
This commit is contained in:
Behdad Esfahbod committed 2025-12-24 15:15:06 -07:00
1 parent 17092a67cc
commit 635cd0e854
1 file changed
+4 -2
+4 -2
View File
@@ -166,10 +166,12 @@ struct TupleVariationHeader
#if HB_FAST_NUM_ACCESS
if (skip)
{
while (i + 4 < coord_count && * (HBUINT64LE *) &peak_tuple[i] == 0)
while (i + 4 <= coord_count && * (HBUINT64LE *) &peak_tuple[i] == 0)
i += 4;
while (i + 1 < coord_count && peak_tuple[i].to_int () == 0)
while (i < coord_count && peak_tuple[i].to_int () == 0)
i += 1;
if (i >= coord_count)
break;
}
#endif
#endif