mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[calculate-scalar] Jump-skip 4 zeros at a time
This commit is contained in:
1 parent
e7796b5c2a
commit
22c876331a
1 file changed
+7
@@ -154,6 +154,13 @@ struct TupleVariationHeader
|
||||
double scalar = 1.0;
|
||||
for (unsigned int i = 0; i < coord_count; i++)
|
||||
{
|
||||
#ifndef HB_OPTIMIZE_SIZE
|
||||
#if HB_FAST_NUM_ACCESS
|
||||
while (i + 4 < coord_count && * (HBUINT64LE *) &peak_tuple[i] == 0)
|
||||
i += 4;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
int peak = peak_tuple[i].to_int ();
|
||||
if (!peak) continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user