mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-08 06:43:13 +00:00
[MultiVarStore] Micro-optimize
This commit is contained in:
parent
9a0cf8d641
commit
13d98f1ded
1 changed files with 6 additions and 0 deletions
|
@ -2576,6 +2576,12 @@ struct VarRegionList
|
|||
for (unsigned int i = 0; i < count; i++)
|
||||
{
|
||||
int coord = i < coord_len ? coords[i] : 0;
|
||||
if (coord == 0)
|
||||
{
|
||||
if (cache)
|
||||
*cached_value = 0.f;
|
||||
return 0.f;
|
||||
}
|
||||
float factor = axes[i].evaluate (coord);
|
||||
if (factor == 0.f)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue