mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-12-01 10:34:23 +01:00
[calculate-scalar] Another tiny speedup
~1% in varc-hanzi benchmark.
This commit is contained in:
1 parent
17092a67cc
commit
635cd0e854
1 file changed
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user