[calculate-scalar] A bit more speedup

5% speedup in varc-hanzi drawing.
No slowdown on GoogleSansFlex.
This commit is contained in:
Behdad Esfahbod committed 2025-12-24 14:17:38 -07:00
1 parent 21d15507fc
commit 17092a67cc
1 file changed
+4
+4
View File
@@ -165,8 +165,12 @@ struct TupleVariationHeader
#ifndef HB_OPTIMIZE_SIZE
#if HB_FAST_NUM_ACCESS
if (skip)
{
while (i + 4 < coord_count && * (HBUINT64LE *) &peak_tuple[i] == 0)
i += 4;
while (i + 1 < coord_count && peak_tuple[i].to_int () == 0)
i += 1;
}
#endif
#endif