mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-07 06:25:03 +00:00
[MultiVarData] Micro-optimize
This commit is contained in:
parent
c81b1c43b1
commit
d9628a5643
1 changed files with 7 additions and 2 deletions
|
@ -1888,7 +1888,7 @@ struct TupleValues
|
|||
|
||||
bool ensure_run ()
|
||||
{
|
||||
if (likely (run_count > 0)) return true;
|
||||
if (run_count > 0) return true;
|
||||
|
||||
if (unlikely (p >= end))
|
||||
{
|
||||
|
@ -1958,6 +1958,8 @@ struct TupleValues
|
|||
#endif
|
||||
for (; j < count; j++)
|
||||
*arrayZ++ += scaled ? *pp++ * scale : *pp++;
|
||||
|
||||
p = (const unsigned char *) pp;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
|
@ -1975,6 +1977,8 @@ struct TupleValues
|
|||
#endif
|
||||
for (; j < count; j++)
|
||||
*arrayZ++ += scaled ? *pp++ * scale : *pp++;
|
||||
|
||||
p = (const unsigned char *) pp;
|
||||
}
|
||||
break;
|
||||
case 4:
|
||||
|
@ -1982,10 +1986,11 @@ struct TupleValues
|
|||
const auto *pp = (const HBINT32 *) p;
|
||||
for (unsigned j = 0; j < count; j++)
|
||||
*arrayZ++ += scaled ? *pp++ * scale : *pp++;
|
||||
|
||||
p = (const unsigned char *) pp;
|
||||
}
|
||||
break;
|
||||
}
|
||||
p += count * width;
|
||||
run_count -= count;
|
||||
i += count;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue